matrixion/scripts/archive.sh
Konstantinos Sideris b70d11fb6f Add missing -j flag to the archive script
[ci skip]
2018-01-02 11:00:16 +02:00

8 lines
252 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 -j -C.. -f "$PREFIX.tar.bz2" --