forked from ikarosilva/wfdb-app-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-toolbox
More file actions
executable file
·39 lines (25 loc) · 774 Bytes
/
Copy pathbuild-toolbox
File metadata and controls
executable file
·39 lines (25 loc) · 774 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
#!/bin/bash
set -e
set -x
if [ $# != 3 ]; then
echo "Usage: $0 repository branch version" >&2
exit 1
fi
repo=$1
branch=$2
version=$3
package=wfdb-app-toolbox-$version
builddir=/tmp/toolbox-build
outdir=/tmp
make="make -j"
rm -rf $builddir
git clone --branch $branch --depth 1 $repo $builddir
cd $builddir
git archive --prefix=wfdb-app-toolbox-$version/ HEAD | gzip -c -9 > $outdir/$package.tar.gz
# FIXME: use wfdb-toolbox-build chroot for this
schroot -cjessie make jar7 &> jar7.log
$make -C mcode/nativelibs download &> download.log
(cd dependencies/jni && ./autogen.sh) &> autogen.log
$make -C mcode/nativelibs install-linux install-windows install-macosx &> nativelibs.log
make package APP_NAME=wfdb-app-toolbox-$version.zip
mv $package.zip $outdir/