| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | PREFIX=$(basenamescip-shell system . . basename. "$(pwdscip-shell system . . pwd. -P)") |
| 6 | { |
| 7 | gitscip-shell system . . git. ls-files |
| 8 | gitscip-shell system . . git. submodule foreach --recursive --quiet \ |
| 9 | 'git ls-files --with-tree="$sha1" | sed "s#^#$path/#"' |
| 10 | } | sedscip-shell system . . sed. "s#^#$PREFIX/#" | xargsscip-shell system . . xargs. tar -c -j -C.. -f "$PREFIX.tar.bz2" -- |