-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-ci.sh
More file actions
executable file
·36 lines (25 loc) · 808 Bytes
/
Copy pathmake-ci.sh
File metadata and controls
executable file
·36 lines (25 loc) · 808 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
#!/bin/bash
machine=$(uname -sm | tr ' ' '-')
echo $machine
function download() {
url="$1"
target="$2"
if [ -e "$target" ]; then return; fi
wget "$url" -O "$target"
}
topdir="$(pwd)"
mkdir -p dependencies
download https://github.com/auriocus/kbskit/releases/download/latest/kbskit_$machine.tar.bz2 dependencies/kbskit.tar.bz2
( cd dependencies
tar xvf kbskit.tar.bz2 )
builddir="$topdir/build"
distdir="$topdir/dist"
kbskitdir="$topdir/dependencies/kbskit_$machine"
tcldir="$kbskitdir/lib"
rm -rf "$builddir"
autoconf
./configure LDFLAGS="-L$tcldir" --with-tcl="$tcldir" --prefix="$builddir" --libdir="$builddir/lib" --exec-prefix="$kbskitdir"
make
make install
mkdir -p "$distdir"
tar cvjf "$distdir/sampleextension-cpp_$machine.tar.bz2" -C "$builddir/lib" $(basename -a "$builddir/lib/"*)