-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-ci.sh
More file actions
executable file
·44 lines (32 loc) · 934 Bytes
/
make-ci.sh
File metadata and controls
executable file
·44 lines (32 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
os=$1
machine=$(uname -sm | tr ' ' -)
PKGS="sdx tclcurl tablelist7.3 img1.4.16 tkdnd2.9 photoresize0.2 tdom0.9.4 vectcl0.3 vectcltk0.2"
if ! [[ "$os" == windows* ]]; then
PKGS="$PKGS rl_json"
fi
echo "Building with $PKGS"
#exit -1
# compile kbskit + sdx into build dir
builddir="kbskit_$machine"
MAKEFLAGS=-j4 ./kbs.tcl -r -v -builddir="$(pwd)/$builddir" -make=make -tar=tar install kbskit8.6 $PKGS
# explicit -make=make is needed, because otherwise "gmake" is tried first,
# which is alien under git-sdk on Github Actions Windows
# exit on error
if [ "$?" -ne 0 ]; then
exit -1
fi
# remove the build files to save space
./kbs.tcl -r -v distclean $PKGS
# exit on error
if [ "$?" -ne 0 ]; then
exit -1
fi
mkdir -p dist
TARBALL=kbskit_$machine.tar.bz2
tar cvjf "dist/$TARBALL" "$builddir/bin" "$builddir/include" "$builddir/lib" "$builddir/licenses"
# exit on error
if [ "$?" -ne 0 ]; then
exit -1
fi