aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/auto-build-common
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-09-26 15:52:11 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-09-26 15:52:11 +0000
commite7ef0380e7f650ee2686164dbce579ec31ae0e33 (patch)
tree7c2c54beffe153699790b4bb002135507b6a464b /scripts/auto-build/auto-build-common
parent711958f47816ba94470a73dac82f08163e417342 (diff)
only make source tarball when its requested via command line arg
svn path=/trunk/; revision=16306
Diffstat (limited to 'scripts/auto-build/auto-build-common')
-rw-r--r--scripts/auto-build/auto-build-common9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common
index ee795cb2..c30ffa0c 100644
--- a/scripts/auto-build/auto-build-common
+++ b/scripts/auto-build/auto-build-common
@@ -160,8 +160,9 @@ get_pd_version()
make_source_tarball()
{
- version=$(get_pd_version $1)
- tarball=$1/../pd-extended_$version.tar.bz2
- tar --exclude-vcs --directory $1/.. -cjpf $tarball pd-extended
- mv $tarball $2
+ rootdir=$1
+ tarballname=$2
+
+ tar --directory $rootdir/.. --exclude-vcs --exclude=$tarballname \
+ -cjpf /tmp/$tarballname $(basename $1)
}