aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/auto-build/auto-build-common5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common
index ebce7212..d74fd411 100644
--- a/scripts/auto-build/auto-build-common
+++ b/scripts/auto-build/auto-build-common
@@ -164,13 +164,14 @@ get_pd_version()
make_source_tarball()
{
rootdir=$1
+ tardir=$(basename $1)
tarballname=$2
debian_tarballname=`echo $2 | sed 's|\.tar\.|.debian.tar.|'`
# make source tarball without debian/
tar --directory $rootdir/.. \
- --exclude-vcs --exclude=$tarballname --exclude=debian \
- -cjpf /tmp/$tarballname $(basename $1)
+ --exclude-vcs --exclude=$tardir/debian \
+ -cjpf /tmp/$tarballname $tardir
# make separate tarball of debian/
tar --directory $rootdir --exclude-vcs \
-cjpf /tmp/$debian_tarballname debian