2019-04-24 01:55:05 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eu
|
2017-12-31 12:19:32 +01:00
|
|
|
|
|
|
|
PREFIX=$(basename "$(pwd -P)")
|
|
|
|
{
|
|
|
|
git ls-files
|
|
|
|
git submodule foreach --recursive --quiet \
|
|
|
|
'git ls-files --with-tree="$sha1" | sed "s#^#$path/#"'
|
2018-01-02 10:00:16 +01:00
|
|
|
} | sed "s#^#$PREFIX/#" | xargs tar -c -j -C.. -f "$PREFIX.tar.bz2" --
|