Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2015-04-01 15:36:24 +0200
committerMiroslav Benes <mbenes@suse.cz>2015-04-01 15:36:24 +0200
commit1f34f18eb5e6d9ec45d9edf8b6223de6aff49b3a (patch)
tree4d881a8f58bc23cfe2cd80599104973e73893439
parent212a7ae1831a636a0b3fc0a52d65d35066ba1c57 (diff)
Generate archives names automatically in tar-up.sh
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
-rwxr-xr-xscripts/tar-up.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/tar-up.sh b/scripts/tar-up.sh
index 3880893..d20be4f 100755
--- a/scripts/tar-up.sh
+++ b/scripts/tar-up.sh
@@ -40,8 +40,10 @@ rm -f "$build_dir"/*
mkdir -p "$build_dir"
# archives
-# eventual TODO: make it more general
-archives="uname_patch"
+# pack all directories with live patches
+# rpm/, scripts/ and $build_dir (if local) are excluded
+build_dir_trim=$(basename $build_dir)
+archives=$(ls -d */ | cut -f1 -d'/' | sed -r "s/rpm|scripts|$build_dir_trim//")
for archive in $archives; do
echo "$archive.tar.bz2"
tar cfj $build_dir/$archive.tar.bz2 $archive