55:19e2140ba458 | 56:3a784e6e475a |
---|---|
1 #!/bin/sh | |
2 t=$(mktemp -d) | |
3 v=$(sed 's/^version = \"\(.*\)\"/\1/p; d;' Cargo.toml | head -1) | |
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 perl -p -i -e s:../alg_tools:alg_tools: $n/Cargo.toml | |
17 zip -q -r "$p/$f" "$n" |