| 1 | #! /bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | set -e |
| 3 | tarball="$1" |
| 4 | if [scip-shell system . . `[`. -z "$tarball" ]; then |
| 5 | echoscip-shell system . . echo. "tarball <gap-core.tar.gz>" 1>&2 |
| 6 | exit 1 |
| 7 | fi |
| 8 | version="$(echoscip-shell system . . echo. "$tarball" | sedscip-shell system . . sed. -e 's/.*gap-\(.*\)-core\.tar.gz$/\1/')" |
| 9 | testscip-shell system . . test. -z "$version" && echoscip-shell system . . echo. "GAP version not found" && exit 1 |
| 10 | echoscip-shell system . . echo. $version |
| 11 | echoscip-shell system . . echo. $tarball |
| 12 | mk-origtargzscip-shell system . . mk-origtargz. --package gap --version "$version" --compression xz --exclude-file 'extern/*' --exclude-file 'cnf/m4/*' --exclude-file 'hpcgap/demo/parorbit/*' --exclude-file 'hpcgap/extern/*' --exclude-file '.*' --exclude-file 'etc/emscripten' "$tarball" |