Automate release archive generation (merge r4676, r4677 and r4679 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-01-06 10:04:11 +00:00
parent 7b0e9f7a51
commit 958579fd8b
6 changed files with 31 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
usage() {
echo "Usage: $(basename $0) name version"
}
if [ $# != 2 ]; then
usage
exit 1
fi
scriptdir="$(dirname "$0")"
name="$1"
version="$2"
tar --owner=root --group=root --transform="s|^|$name-$version/|" \
-cjf $name-$version.tar.bz2 $($scriptdir/list-source-files) &&
ls -l $name-$version.tar.bz2