From 1a3369877e940447a75ec1ec1f42776dce283f37 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 31 Dec 2017 13:19:32 +0200 Subject: Update travis --- scripts/archive.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/archive.sh (limited to 'scripts') diff --git a/scripts/archive.sh b/scripts/archive.sh new file mode 100755 index 00000000..d963e51e --- /dev/null +++ b/scripts/archive.sh @@ -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" -- -- cgit 1.4.1