26:acf57c458740 | 27:a848c2c5a2e4 |
---|---|
1 #!/bin/sh | |
2 t=$(mktemp -d) | |
3 v=$(cat Cargo.toml |sed 's/^version = \"\(.*\)\"/\1/p; d;') | |
4 n="pointsource_algs-$v" | |
5 f="$n.zip" | |
6 if test -f "$f"; then | |
7 echo "$n already exists" | |
8 exit 1 | |
9 fi | |
10 echo "Assembling $f..." | |
11 hg archive "$t/$n" | |
12 rm "$t/$n/package.sh" | |
13 hg -R ../alg_tools archive "$t/$n/alg_tools" | |
14 p="$(pwd)" | |
15 cd $t | |
16 zip -q -r "$p/$f" "$n" |