Update travis
This commit is contained in:
parent
0efe6c7db4
commit
1a3369877e
6 changed files with 25 additions and 35 deletions
14
scripts/archive.sh
Executable file
14
scripts/archive.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
TAG=`git tag -l --points-at HEAD`
|
||||
PREFIX=$(basename "$(pwd -P)")
|
||||
|
||||
if [ ! -z $TAG ]; then
|
||||
PREFIX=$(basename "$(pwd -P)").$TAG
|
||||
fi
|
||||
|
||||
{
|
||||
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" --
|
||||
Loading…
Add table
Add a link
Reference in a new issue