799885ad24
[ci skip]
9 lines
249 B
Bash
Executable File
9 lines
249 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
PREFIX=$(basename "$(pwd -P)")
|
|
{
|
|
git ls-files
|
|
git submodule foreach --recursive --quiet \
|
|
'git ls-files --with-tree="$sha1" | sed "s#^#$path/#"'
|
|
} | sed "s#^#$PREFIX/#" | xargs tar -c -C.. -f "$PREFIX.tar.bz2" --
|