Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
V
vitis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eugene 'Vindex' Stulin
vitis
Commits
64fe6b32
Commit
64fe6b32
authored
Nov 06, 2019
by
Eugene 'Vindex' Stulin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generation of deb and rpm removed
parent
3bdf64ca
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
201 additions
and
427 deletions
+201
-427
Makefile
Makefile
+14
-32
README.md
README.md
+18
-3
build-scripts/build_deb.sh
build-scripts/build_deb.sh
+0
-117
build-scripts/build_rpm.sh
build-scripts/build_rpm.sh
+0
-60
build-scripts/build_tarball.sh
build-scripts/build_tarball.sh
+5
-6
build-scripts/compile.sh
build-scripts/compile.sh
+44
-71
build-scripts/env.sh
build-scripts/env.sh
+11
-26
build-scripts/install.sh
build-scripts/install.sh
+94
-47
build-scripts/update_readme.sh
build-scripts/update_readme.sh
+3
-5
changelog
changelog
+6
-0
help/en_US/help_assign.txt
help/en_US/help_assign.txt
+0
-0
help/en_US/help_begin.txt
help/en_US/help_begin.txt
+0
-0
help/en_US/help_copy.txt
help/en_US/help_copy.txt
+0
-0
help/en_US/help_create.txt
help/en_US/help_create.txt
+0
-0
help/en_US/help_delete.txt
help/en_US/help_delete.txt
+0
-0
help/en_US/help_open.txt
help/en_US/help_open.txt
+0
-0
help/en_US/help_run.txt
help/en_US/help_run.txt
+0
-0
help/en_US/help_service.txt
help/en_US/help_service.txt
+0
-0
help/en_US/help_show.txt
help/en_US/help_show.txt
+0
-0
help/eo/help_assign.txt
help/eo/help_assign.txt
+0
-0
help/eo/help_open.txt
help/eo/help_open.txt
+0
-0
help/eo/help_run.txt
help/eo/help_run.txt
+0
-0
help/eo/help_service.txt
help/eo/help_service.txt
+0
-0
help/eo/help_show.txt
help/eo/help_show.txt
+0
-0
help/ru_RU/help_assign.txt
help/ru_RU/help_assign.txt
+0
-0
help/ru_RU/help_begin.txt
help/ru_RU/help_begin.txt
+0
-0
help/ru_RU/help_copy.txt
help/ru_RU/help_copy.txt
+0
-0
help/ru_RU/help_create.txt
help/ru_RU/help_create.txt
+0
-0
help/ru_RU/help_delete.txt
help/ru_RU/help_delete.txt
+0
-0
help/ru_RU/help_open.txt
help/ru_RU/help_open.txt
+0
-0
help/ru_RU/help_run.txt
help/ru_RU/help_run.txt
+0
-0
help/ru_RU/help_service.txt
help/ru_RU/help_service.txt
+0
-0
help/ru_RU/help_show.txt
help/ru_RU/help_show.txt
+0
-0
pkg-info/deb-info/template.control
pkg-info/deb-info/template.control
+0
-9
pkg-info/description
pkg-info/description
+0
-3
pkg-info/homepage
pkg-info/homepage
+0
-1
pkg-info/maintainer
pkg-info/maintainer
+0
-1
pkg-info/rpm-info/template.spec
pkg-info/rpm-info/template.spec
+0
-36
source/version
source/version
+1
-1
summary
summary
+0
-0
testing/testing.sh
testing/testing.sh
+5
-1
testing/vitis.conf
testing/vitis.conf
+0
-8
No files found.
Makefile
View file @
64fe6b32
APP
=
vitis
BS
=
build-scripts
PREFIX
=
/usr/local
DESTDIR
=
ALL
=
changelog copyright COPYING Makefile README.md
\
source
/
help
/ pkg-info/
$(BS)
/ testing/ resources/ doc/
DEFAULT_PLANG
=
D
PLANG
=
$(DEFAULT_PLANG)
MULTILINGUAL
=
FALSE
ifeq
($(MULTILINGUAL),TRUE)
PLANG_DIRNAME
=
lang_
$(PLANG)
PLANG_DIRNAME
=
lang_
$(PLANG)
/
else
PLANG_DIRNAME
=
endif
ifeq
($(PLANG),D)
DC
=
ldc2
#dmd, gdc or ldc2
PHOBOS_LINKING
=
static
#static or dynamic
RELEASE_ARGS
=
release
$(DC)
$(PHOBOS_LINKING)
DEBUG_ARGS
=
debug
$(DC)
$(PHOBOS_LINKING)
SPEC_PKG_OPTIONS
=
$(PLANG)
$(DC)
$(PHOBOS_LINKING)
else
SPEC_PKG_OPTIONS
=
$(PLANG)
DC
=
ldc2
# dmd, gdc or ldc2
PHOBOS_LINKING
=
static
# static or dynamic
AMALTHEA_LINKING
=
static
# static or dynamic
RELEASE_ARGS
=
release
$(DC)
$(PHOBOS_LINKING)
$(AMALTHEA_LINKING)
DEBUG_ARGS
=
debug
$(DC)
$(PHOBOS_LINKING)
$(AMALTHEA_LINKING)
endif
bin
:
$(BS)
/
$(PLANG_DIRNAME)
/compile.sh
$(RELEASE_ARGS)
debug
:
$(BS)
/
$(PLANG_DIRNAME)
/
compile.sh
$(DEBUG_ARGS)
$(BS)
/
$(PLANG_DIRNAME)
compile.sh
$(DEBUG_ARGS)
test
:
bin
:
$(BS)
/
$(PLANG_DIRNAME)
compile.sh
$(RELEASE_ARGS)
testing
:
$(BS)
/run_tests.sh
doc
:
doc/req-ru/requirements.tex
...
...
@@ -41,28 +36,15 @@ doc: doc/req-ru/requirements.tex
update_readme
:
$(BS)
/update_readme.sh
tarball
:
$(ALL) clean update_readme
$(BS)
/build_tarball.sh
install
:
$(BS)
/install.sh
--install
$(DESTDIR)$(PREFIX)
uninstall
:
$(BS)
/install.sh
--uninstall
$(DESTDIR)$(PREFIX)
deb
:
debug update_readme
$(BS)
/build_deb.sh
$(SPEC_PKG_OPTIONS)
install-deb
:
deb
sudo
dpkg
-i
build/deb/
*
.deb
rpm
:
bin update_readme tarball
$(BS)
/build_rpm.sh
$(SPEC_PKG_OPTIONS)
install-rpm
:
rpm
sudo
rpm
--reinstall
build/rpmbuild/RPMS/
`
uname
-m
`
/
*
.rpm
release
:
tarball deb rpm
tarball
:
clean
$(BS)
/build_tarball.sh
clean
:
rm
-rf
build/ doc/req-ru/
*
.pdf doc/req-ru/
*
.log
README.md
View file @
64fe6b32
...
...
@@ -23,12 +23,27 @@ See details: `vitis --help`
## Ready-made packages
Latest version of tarball with sources:
[
vitis-0.10.4.tar.xz
](
https://bitbucket.org/vindexbit/vitis/downloads/vitis-0.10.4.tar.xz
)
Latest version of tarball with sources:
[
vitis-0.11.tar.xz
](
https://bitbucket.org/vindexbit/vitis/downloads/vitis-0.11.tar.xz
)
*~~~~~~~~~*
PPA is available for Debian/Ubuntu users.
Supported architectures
**amd64**
,
**armhf**
.
Usage of PPA:
```
sudo add-apt-repository ppa:vindexbit/os18
sudo apt update --allow-insecure-repositories
sudo apt install vitis
```
### x86_64
Latest version of deb-package:
[
vitis_0.1
0.4_amd64.deb
](
https://bitbucket.org/vindexbit/vitis/downloads/vitis_0.10.4
_amd64.deb
)
Latest version of deb-package:
[
vitis_0.1
1_amd64.deb
](
https://bitbucket.org/vindexbit/vitis/downloads/vitis_0.11
_amd64.deb
)
Latest version of deb-package for ARMv7:
[
vitis_0.11_armhf.deb
](
https://bitbucket.org/vindexbit/vitis/downloads/vitis_0.11_armhf.deb
)
*Checked on Debian 10 and Ubuntu 18.04*
...
...
@@ -141,7 +156,7 @@ Example:
*
BTC:
`13uF1MMxWGDktpe8f19rxoDNYkaZ6aoiuU`
*
[
Liberapay.com
](
https://liberapay.com/Vindex
)
*
[
Liberapay.com
](
https://liberapay.com/Vindex
)
---
...
...
build-scripts/build_deb.sh
deleted
100755 → 0
View file @
3bdf64ca
#!/bin/bash -e
source
build-scripts/env.sh
set
-x
PKG
=
${
APP
}
PLANG
=
$1
# Programming Language (Python or D)
if
[[
$PLANG
==
D
]]
;
then
DEPENDS
=
"libc6 (>= 2.14)"
DC
=
$2
PHOBOS_LINKING
=
$3
if
[[
$DC
==
ldc2
&&
$PHOBOS_LINKING
==
dynamic
]]
;
then
DEPENDS+
=
", libphobos2-ldc-shared82 (>= 1:1.12.0-1)"
elif
[[
$DC
==
gdc
&&
$PHOBOS_LINKING
==
dynamic
]]
;
then
DEPENDS+
=
", libgphobos76 (>= 8.3.0-2)"
fi
fi
DEBINFO
=
pkg-info/deb-info
VERSLINE
=
"Version:
${
VERSION
}
"
ARCHLINE
=
"Architecture:
${
ARCH
}
"
DEPENDS_LINE
=
"Depends:
${
DEPENDS
}
"
MAINTAINER
=
"Maintainer:
`
cat
pkg-info/maintainer
`
"
HOMEPAGE_REGEX
=
`
sed
-e
's/\//\\\\\//g'
pkg-info/homepage
`
HOMEPAGELINE
=
"Homepage:
${
HOMEPAGE_REGEX
}
"
DESCRIPTION_BEGIN
=
"Description:
${
SUMMARY
,
}
"
make_control
()
{
sed
"s/^Package:.*/Package:
${
PKG
}
/g"
"
${
DEBINFO
}
/template.control"
>
tmp1
sed
"s/^Version:.*/
${
VERSLINE
}
/g"
tmp1
>
tmp2
sed
"s/^Architecture:.*/
${
ARCHLINE
}
/g"
tmp2
>
tmp3
sed
"s/^Depends:.*/
${
DEPENDS_LINE
}
/g"
tmp3
>
tmp4
sed
"s/^Homepage:.*/
${
HOMEPAGELINE
}
/g"
tmp4
>
tmp5
sed
"s/^Maintainer:.*/
${
MAINTAINER
}
/g"
tmp5
>
tmp6
sed
"s/^Description:.*/
${
DESCRIPTION_BEGIN
}
/g"
tmp6
>
tmp7
sed
"/Description/r pkg-info/description"
tmp7
>
tmp8
sed
"/^
${
APP
}
/,/
\$
./s/^/ /"
tmp8
>
${
DEBINFO
}
/control
rm
tmp
*
}
DEBPATH
=
build/deb/
${
ARCH
}
# temporary place to build
DEB_BASHCOMP
=
${
DEBPATH
}
/usr/
${
RL_BASHCOMP
}
DEB_HELPDIR_EN
=
${
DEBPATH
}
/usr/
${
RL_HELPDIR_EN
}
DEB_HELPDIR_RU
=
${
DEBPATH
}
/usr/
${
RL_HELPDIR_RU
}
DEB_HELPDIR_EO
=
${
DEBPATH
}
/usr/
${
RL_HELPDIR_EO
}
DEB_MANDIR_EN
=
${
DEBPATH
}
/usr/
${
RL_MANDIR_EN
}
DEB_MANDIR_RU
=
${
DEBPATH
}
/usr/
${
RL_MANDIR_RU
}
DEB_MANDIR_EO
=
${
DEBPATH
}
/usr/
${
RL_MANDIR_EO
}
make_deb
()
{
mkdir
-p
${
DEBPATH
}
/DEBIAN
mkdir
-p
${
DEBPATH
}
/usr/bin
cp
${
BINPATH
}
${
DEBPATH
}
/usr/bin/
${
APP
}
if
[[
-e
source
/_
${
APP
}
]]
;
then
mkdir
-p
${
DEB_BASHCOMP
}
cp source
/_
${
APP
}
${
DEB_BASHCOMP
}
/
${
APP
}
fi
#help-pages
mkdir
-p
${
DEB_HELPDIR_EN
}
mkdir
-p
${
DEB_HELPDIR_RU
}
mkdir
-p
${
DEB_HELPDIR_EO
}
cp help
/en_US/help
*
.txt
${
DEB_HELPDIR_EN
}
/
cp help
/ru_RU/help
*
.txt
${
DEB_HELPDIR_RU
}
/
cp help
/eo/help
*
.txt
${
DEB_HELPDIR_EO
}
/
#copyright and control
mkdir
-p
${
DEBPATH
}
/usr/
${
RL_DOCDIR_SPEC
}
cp
copyright
${
DEBPATH
}
/usr/
${
RL_DOCDIR_SPEC
}
chmod
644
${
DEBPATH
}
/usr/
${
RL_DOCDIR_SPEC
}
/copyright
mv
${
DEBINFO
}
/control
${
DEBPATH
}
/DEBIAN/
chmod
644
${
DEBPATH
}
/DEBIAN/control
#permissions
chmod
755
${
DEBPATH
}
/usr/
chmod
755
${
DEBPATH
}
/usr/bin
chmod
755
${
DEBPATH
}
/usr/bin/
${
APP
}
chmod
755
${
DEBPATH
}
/usr/share/
if
[[
-e
source
/_
${
APP
}
]]
;
then
chmod
755
${
DEBPATH
}
/usr/share/bash-completion
chmod
755
${
DEBPATH
}
/usr/share/bash-completion/completions
chmod
755
${
DEBPATH
}
/usr/share/bash-completion/completions/
${
APP
}
fi
chmod
755
${
DEBPATH
}
/usr/share/doc
chmod
755
${
DEBPATH
}
/usr/share/doc/
${
APP
}
chmod
755
${
DEBPATH
}
/usr/share/help
chmod
755
${
DEBPATH
}
/usr/share/help/en_US
chmod
755
${
DEBPATH
}
/usr/share/help/ru_RU
chmod
755
${
DEBPATH
}
/usr/share/help/eo
chmod
755
${
DEBPATH
}
/usr/share/help/en_US/
${
APP
}
chmod
644
${
DEBPATH
}
/usr/share/help/en_US/
${
APP
}
/
*
.txt
chmod
755
${
DEBPATH
}
/usr/share/help/ru_RU/
${
APP
}
chmod
644
${
DEBPATH
}
/usr/share/help/ru_RU/
${
APP
}
/
*
.txt
chmod
755
${
DEBPATH
}
/usr/share/help/eo/
${
APP
}
chmod
644
${
DEBPATH
}
/usr/share/help/eo/
${
APP
}
/
*
.txt
#changelog and md5sums
gzip
-9
-k
-n
changelog
mv
changelog.gz
${
DEBPATH
}
/usr/
${
RL_DOCDIR_SPEC
}
/
cd
${
DEBPATH
}
find usr
-type
f
-exec
md5sum
{}
+
>
DEBIAN/md5sums
chmod
644 DEBIAN/md5sums
cd
-
#generating
fakeroot dpkg-deb
--build
${
DEBPATH
}
build/deb
#if [[ -e /usr/bin/lintian ]] ; then
#lintian build/deb/*.deb
#fi
}
make_control
make_deb
set
+x
build-scripts/build_rpm.sh
deleted
100755 → 0
View file @
3bdf64ca
#!/bin/bash -e
source
build-scripts/env.sh
set
-x
PLANG
=
$1
if
[[
$PLANG
==
D
]]
;
then
DC
=
$2
PHOBOS_LINKING
=
$3
if
[[
$DC
==
ldc2
]]
;
then
BUILDREQ
=
"BuildRequires: ldc"
elif
[[
$DC
==
dmd
]]
;
then
BUILDREQ
=
"BuildRequires: dmd"
fi
fi
RPMINFO
=
pkg-info/rpm-info
SPECFILE
=
build/rpmbuild/SPECS/
${
APP
}
.spec
NAMELINE
=
"Name:
${
APP
}
"
VERSLINE
=
"Version:
${
VERSION
}
"
SUMMLINE
=
"Summary:
${
SUMMARY
:0:-1
}
"
# delete the last dot
HOMEPAGE_REGEX
=
`
sed
-e
's/\//\\\\\//g'
pkg-info/homepage
`
PAGELINE
=
"URL:
${
HOMEPAGE_REGEX
}
"
mkdir
-p
build/rpmbuild
cd
build/rpmbuild
mkdir
-p
BUILD BUILDROOT RPMS SOURCES SPECS SRPMS
cd
-
make_spec
()
{
sed
"s/^Name:.*/
${
NAMELINE
}
/g"
${
RPMINFO
}
/template.spec
>
tmp1
sed
"s/^Version:.*/
${
VERSLINE
}
/g"
tmp1
>
tmp2
sed
"s/^Summary:.*/
${
SUMMLINE
}
/g"
tmp2
>
tmp3
sed
"s/^URL:.*/
${
PAGELINE
}
/g"
tmp3
>
tmp4
sed
"s/^BuildRequires:.*/
${
BUILDREQ
}
/g"
tmp4
>
tmp5
sed
'/%description/r pkg-info/description'
tmp5
>
tmp6
sed
'/%changelog/r changelog'
tmp6
>
${
SPECFILE
}
rm
tmp
*
}
make_rpm
()
{
if
[[
-e
~/.rpmmacros
]]
;
then
cp
~/.rpmmacros ~/.rpmmacros.original
else
touch
~/.rpmmacros
fi
echo
"%_topdir
${
PWD
}
/build/rpmbuild"
>>
~/.rpmmacros
cp
build/
${
APP
}
-
${
VERSION
}
.tar.xz build/rpmbuild/SOURCES
rpmbuild
-ba
build/rpmbuild/SPECS/
${
APP
}
.spec
rm
~/.rpmmacros
if
[[
-e
~/.rpmmacros.original
]]
;
then
mv
~/.rpmmacros.original ~/.rpmmacros
fi
rpmlint build/rpmbuild/RPMS/
`
uname
-m
`
/
*
.rpm
}
make_spec
make_rpm
set
+x
build-scripts/build_tarball.sh
View file @
64fe6b32
...
...
@@ -2,13 +2,12 @@
source
build-scripts/env.sh
set
-x
ALL
=
"changelog COPYING copyright Makefile README.md
\
build-scripts/ help/ pkg-info/ source/ testing/ resources/ doc/"
PKG
=
"
${
APP
}
-
${
VERSION
}
"
mkdir
-p
${
PKG
}
build/
cp
-r
${
ALL
}
${
PKG
}
tar
--xz
-cf
build/
${
PKG
}
.tar.xz
${
PKG
}
rm
-rf
${
PKG
}
mkdir
-p
build/
${
PKG
}
cp
-p
-r
${
ALL
}
build/
${
PKG
}
pushd
build
tar
--xz
-cf
${
PKG
}
.tar.xz
${
PKG
}
popd
set
+x
build-scripts/compile.sh
View file @
64fe6b32
#!/bin/bash -e
source
build-scripts/env.sh
SRCDIR
=
source
/
SRC
=
"
${
SRCDIR
}
/*.d"
if
[[
-e
/usr/bin/dpkg-architecture
]]
;
then
DEB_HOST_MULTIARCH
=
`
dpkg-architecture
-qDEB_HOST_MULTIARCH
`
fi
BINVERSION
=
$1
# release or debug
DC
=
$2
# dmd, ldc2
PHOBOS_LINKING
=
$3
# dynamic or static
AMALTHEA_LINKING
=
static
STATIC_OPTIONS
=
""
BINPATH
=
"
${
BINPATH_BASEDIR
}
/
${
APP
}
"
BINVERSION
=
$1
# release or debug
DC
=
$2
# dmd, ldc2
PHOBOS_LINKING
=
$3
# dynamic or static
AMALTHEA_LINKING
=
$4
# dynamic or static
LDC2_STATIC_OPTS
=
"-defaultlib=:libphobos2-ldc.a,:libdruntime-ldc.a,:libz.a"
LDC2_STATIC_OPTS+
=
" -link-defaultlib-shared=false"
GDC_STATIC_OPTS
=
"-static-libphobos"
DMD_STATIC_OPTS
=
""
if
[[
${
PHOBOS_LINKING
}
==
static
]]
;
then
if
[[
${
DC
}
==
ldc2
]]
;
then
STATIC_OPTIONS
=
-defaultlib
=
:libphobos2-ldc.a,:libdruntime-ldc.a
LDC_VERSION
=
`
ldc2
--version
|
head
-n
1
\
|
sed
"s/LDC - the LLVM D compiler (//"
|
sed
"s/)://"
`
echo
Version of LLVM D Compiler:
${
LDC_VERSION
}
if
[[
"
${
LDC_VERSION
}
"
!=
"1.2.0"
]]
then
STATIC_OPTIONS+
=
" -link-defaultlib-shared=false -L-lz"
fi
elif
[[
${
DC
}
==
gdc
]]
;
then
STATIC_OPTIONS
=
-static-libphobos
# unfortunately, no effects
fi
fi
if
[[
${
AMALTHEA_LINKING
}
==
dynamic
]]
;
then
if
[[
${
DC
}
==
gdc
]]
;
then
LIBS
=
"-lamalthea-
${
DC
}
"
else
LIBS
=
"-L-L/usr/lib/
${
DEB_HOST_MULTIARCH
}
/ -L-l:libamalthea-
${
DC
}
.so"
fi
else
#static
if
[[
${
DC
}
==
gdc
]]
;
then
LIBS
=
"-lamalthea-
${
DC
}
"
# unfortunately, here is a problem
else
LIBS
=
"-L-L/usr/lib/
${
DEB_HOST_MULTIARCH
}
/ -L-l:libamalthea-
${
DC
}
.a"
fi
STATIC_OPTS
=
$(
eval echo
\$
${
DC
^^
}
_STATIC_OPTS
)
fi
mkdir
-p
${
BINPATH_BASEDIR
}
if
[[
${
DC
}
==
dmd
]]
;
then
DEBUG_OPTIONS
=
"-debug -g"
elif
[[
${
DC
}
==
ldc2
]]
;
then
DEBUG_OPTIONS
=
"-d-debug -gc"
elif
[[
${
DC
}
==
gdc
]]
;
then
DEBUG_OPTIONS
=
"-fdebug"
fi
OUT
=
"-of"
OPTIM
=
"-O -release"
if
[[
${
DC
}
==
gdc
]]
;
then
if
[[
${
DC
}
==
dmd
]]
;
then
DEBUG
=
"-debug -g"
RELEASE
=
"-O -release"
OUT
=
"-of"
elif
[[
${
DC
}
==
ldc2
]]
;
then
DEBUG
=
"-d-debug -gc"
RELEASE
=
"-O -release"
OUT
=
"-of"
elif
[[
${
DC
}
==
gdc
]]
;
then
DEBUG
=
"-fdebug"
RELEASE
=
"-O2 -frelease"
OUT
=
"-o "
OPTIM
=
"-O2 -frelease"
fi
set
-x
L
OCALES_CSV
=
resources/locales.csv
LOCALES_DTXT
=
source
/locales.dtxt
if
[[
-e
/usr/bin/rdmd
]]
;
then
${
BS
}
/localesconverter.script.d
"
${
LOCALES_CSV
}
"
"
${
LOCALES_DT
XT
}
"
el
se
${
DC
}
${
BS
}
/localesconverter.script.d
${
OUT
}
localesconverter
./localesconverter
"
${
LOCALES_CSV
}
"
"
${
LOCALES_DTXT
}
"
rm
localesconverter
L
PATH
=
/usr/lib/
${
DEB_HOST_MULTIARCH
}
[[
${
AMALTHEA_LINKING
}
==
dynamic
]]
&&
LIBEXT
=
so
||
LIBEXT
=
a
if
[[
${
DC
}
!=
gdc
]]
;
then
AMALTHEA_OPTS
=
"-L-L
${
LPATH
}
-L-l:libamalthea-
${
DC
}
.
${
LIBE
XT
}
"
el
if
[[
${
AMALTHEA_LINKING
}
==
dynamic
]]
;
then
AMALTHEA_OPTS
=
"-lamalthea-
${
DC
}
"
elif
[[
${
AMALTHEA_LINKING
}
==
static
]]
;
then
AMALTHEA_OPTS
=
"
${
LPATH
}
/libamalthea-
${
DC
}
.a"
fi
LOCALES_CSV
=
resources/locales.csv
LOCALES_DTXT
=
source
/locales.dtxt
${
DC
}
${
BS
}
/localesconverter.script.d
${
OUT
}
localesconverter
./localesconverter
"
${
LOCALES_CSV
}
"
"
${
LOCALES_DTXT
}
"
rm
localesconverter localesconverter.o
if
[[
$BINVERSION
==
release
]]
;
then
OPTS
=
"
${
OPTIM
}
${
STATIC_OPTIONS
}
${
LIBS
}
-Jsource/"
${
DC
}
${
SRC
}
${
OUT
}${
BINPATH
}
${
OPTS
}
objcopy
--strip-debug
--strip-unneeded
${
BINPATH
}
${
BINPATH
}
ARGS
=
"-Jsource/
${
STATIC_OPTS
}
${
AMALTHEA_OPTS
}
"
if
[[
$BINVERSION
==
debug
]]
;
then
${
DC
}
${
SRC
}
${
OUT
}${
BINPATH
}
${
ARGS
}
${
DEBUG
}
else
OPTS
=
"
${
DEBUG_OPTIONS
}
${
STATIC_OPTIONS
}
${
LIBS
}
-Jsource/"
${
DC
}
${
SRC
}
${
OUT
}${
BINPATH
}
${
OPTS
}
${
DC
}
${
SRC
}
${
OUT
}${
BINPATH
}
${
ARGS
}
${
RELEASE
}
objcopy
--strip-debug
--strip-unneeded
${
BINPATH
}
${
BINPATH
}
fi
cd
"
${
BINPATH_BASEDIR
}
"
chrpath
-d
${
APP
}
chmod
755
${
APP
}
cd
-
pushd
"
${
BINPATH_BASEDIR
}
"
chrpath
-d
${
APP
}
chmod
755
${
APP
}
popd
set
+x
build-scripts/env.sh
View file @
64fe6b32
#!/bin/bash
APP
=
vitis
readonly
VERSION
=
`
cat source
/version
`
PROJECT
=
vitis
APP
=
$PROJECT
if
[[
-e
/usr/bin/dpkg
]]
;
then
ARCH
=
`
dpkg
--print-architecture
`
fi
ALL
=
"changelog COPYING copyright Makefile README.md summary
\
build-scripts/ help/ source/ testing/ resources/ doc/"
readonly
VERSION
=
`
cat source
/version
`
readonly
BINPATH_BASEDIR
=
build/bin
BINPATH
=
"
${
BINPATH_BASEDIR
}
/
${
APP
}
"
readonly
SUMMARY
=
`
cat
pkg-info/summary
`
readonly
DEFAULT_ROOTDIR
=
/usr
readonly
DEFAULT_ALTROOTDIR
=
/usr/local
# RL is "Relative Location"
readonly
RL_BINDIR
=
bin
readonly
RL_SHAREDIR
=
share
readonly
RL_HELPDIR
=
${
RL_SHAREDIR
}
/help
readonly
RL_HELPDIR_EN
=
${
RL_HELPDIR
}
/en_US/
${
APP
}
readonly
RL_HELPDIR_RU
=
${
RL_HELPDIR
}
/ru_RU/
${
APP
}
readonly
RL_HELPDIR_EO
=
${
RL_HELPDIR
}
/eo/
${
APP
}
readonly
RL_DOCDIR
=
${
RL_SHAREDIR
}
/doc
readonly
RL_DOCDIR_SPEC
=
${
RL_SHAREDIR
}
/doc/
${
APP
}
readonly
RL_MANDIR
=
${
RL_SHAREDIR
}
/man
readonly
RL_MANDIR_EN
=
${
RL_MANDIR
}
/man1
readonly
RL_MANDIR_RU
=
${
RL_MANDIR
}
/ru/man1
readonly
RL_MANDIR_EO
=
${
RL_MANDIR
}
/eo/man1
readonly
RL_BASHCOMP
=
${
RL_SHAREDIR
}
/bash-completion/completions
readonly
SUMMARY
=
`
cat
summary
`
#readonly RPMDIST_RAW=$( rpm --eval %dist )
#readonly RPMDIST=${RPMDIST_RAW:1} # not used
if
[[
-e
/usr/bin/dpkg-architecture
]]
;
then
DEB_HOST_MULTIARCH
=
`
dpkg-architecture
-qDEB_HOST_MULTIARCH
`
fi
readonly
BS
=
build-scripts
readonly
RESOURCES_DIR
=
resources
BS
=
build-scripts
build-scripts/install.sh
View file @
64fe6b32
#!/bin/bash -e
source
build-scripts/env.sh
set
-x
MODE
=
"
$1
"
PREFIX
=
"
$2
"
if
[[
${
PREFIX
}
!=
""
]]
;
then
if
[[
${
PREFIX
}
!=
""
]]
;
then
BASE
=
"
${
PREFIX
}
"
else
BASE
=
${
DEFAULT_ALTROOTDIR
}
BASE
=
"/usr/local"
fi
read
-ra
distr_id_arr
<<<
"
`
lsb_release
-i
`
"
# lsb_release -i (for example): "Distributor ID: openSUSE"
DISTRIBUTION
=
${
distr_id_arr
[2]
}
# for example, "openSUSE"
readonly
DEFAULT_ROOTDIR
=
/usr
readonly
DEFAULT_ALTROOTDIR
=
/usr/local
# RL is "Relative Location"
readonly
RL_BINDIR
=
bin
readonly
RL_SHAREDIR
=
share
readonly
RL_HELPDIR
=
${
RL_SHAREDIR
}
/help
readonly
RL_HELPDIR_EN
=
${
RL_HELPDIR
}
/en_US/
${
APP
}
readonly
RL_HELPDIR_RU
=
${
RL_HELPDIR
}
/ru_RU/
${
APP
}
readonly
RL_HELPDIR_EO
=
${
RL_HELPDIR
}
/eo/
${
APP
}
if
[[
"
${
DISTRIBUTION
}
"
!=
"openSUSE"
]]
;
then
readonly
RL_DOCDIR
=
${
RL_SHAREDIR
}
/doc
else
readonly
RL_DOCDIR
=
${
RL_SHAREDIR
}
/doc/packages
fi
ALTBINDIR
=
"
${
BASE
}
/
${
RL_BINDIR
}
"
ALTSHAREDIR
=
"
${
BASE
}
/
${
RL_SHAREDIR
}
"
ALTDOCDIR
=
"
${
BASE
}
/
${
RL_DOCDIR
}
"
ALTMANDIR_EN
=
"
${
BASE
}
/
${
RL_MANDIR_EN
}
"
ALTMANDIR_RU
=
"
${
BASE
}
/
${
RL_MANDIR_RU
}
"
ALTMANDIR_EO
=
"
${
BASE
}
/
${
RL_MANDIR_EO
}
"
ALTBASHCOMPDIR
=
"
${
BASE
}
/
${
RL_BASHCOMP
}
"
ALTHELPDIR
=
"
${
BASE
}
/
${
RL_HELPDIR
}
"
ALTDOCDIR_SPEC
=
"
${
BASE
}
/
${
RL_DOCDIR_SPEC
}
"
ALTHELPDIR_EN
=
"
${
BASE
}
/
${
RL_HELPDIR_EN
}
"
ALTHELPDIR_RU
=
"
${
BASE
}
/
${
RL_HELPDIR_RU
}
"
ALTHELPDIR_EO
=
"
${
BASE
}
/
${
RL_HELPDIR_EO
}
"
echo
"prefix:"
${
BASE
}
if
[[
${
MODE
}
==
"--install"
]]
;
then
mkdir
-p
"
${
ALTBINDIR
}
"
"
${
ALTDOCDIR_SPEC
}
"
install
"
${
BINPATH
}
"
"
${
ALTBINDIR
}
/"
if
[[
-e
source
/_
${
APP
}
]]
;
then
mkdir
-p
"
${
ALTBASHCOMPDIR
}
"
cp source
/_
${
APP
}
"
${
ALTBASHCOMPDIR
}
/
${
APP
}
"
readonly
RL_DOCDIR_SPEC
=
${
RL_DOCDIR
}
/
${
APP
}
readonly
RL_MANDIR
=
${
RL_SHAREDIR
}
/man
readonly
RL_MANDIR_EN
=
${
RL_MANDIR
}
/man1
readonly
RL_MANDIR_RU
=
${
RL_MANDIR
}
/ru/man1
readonly
RL_MANDIR_EO
=
${
RL_MANDIR
}
/eo/man1
readonly
RL_BASHCOMP
=
${
RL_SHAREDIR
}
/bash-completion/completions
INST_BINDIR
=
"
${
BASE
}
/
${
RL_BINDIR
}
"
INST_MANDIR_EN
=
"
${
BASE
}
/
${
RL_MANDIR_EN
}
"
INST_MANDIR_RU
=
"
${
BASE
}
/
${
RL_MANDIR_RU
}
"
INST_MANDIR_EO
=
"
${
BASE
}
/
${
RL_MANDIR_EO
}
"
INST_BASHCOMPDIR
=
"
${
BASE
}
/
${
RL_BASHCOMP
}
"
INST_HELPDIR
=
"
${
BASE
}
/
${
RL_HELPDIR
}
"
INST_DOCDIR_SPEC
=
"
${
BASE
}
/
${
RL_DOCDIR_SPEC
}
"
INST_HELPDIR_EN
=
"
${
BASE
}
/
${
RL_HELPDIR_EN
}
"
INST_HELPDIR_RU
=
"
${
BASE
}
/
${
RL_HELPDIR_RU
}
"
INST_HELPDIR_EO
=
"
${
BASE
}
/
${
RL_HELPDIR_EO
}
"
set
-x
echo
"PREFIX:"
${
BASE
}
install_man_page
()
{
lang
=
$1
if
[[
"
$lang
"
==
""
]]
;
then
page
=
help
/
${
APP
}
.1
INST_MANDIR
=
"
${
BASE
}
/
${
RL_MANDIR
}
/man1"
else
page
=
help
/
${
APP
}
.
${
lang
}
.1
INST_MANDIR
=
"
${
BASE
}
/
${
RL_MANDIR
}
/
${
lang
}
/man1"
fi
if
[[
!
-e
"
${
page
}
"
]]
;
then return
;
fi
mkdir
-p
${