[eclipse-wtp] 01/08: Store temporary files created by d/get-orig-source in /tmp

Jakub Adam xhaakon-guest at moszumanska.debian.org
Thu Jul 10 17:46:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

xhaakon-guest pushed a commit to branch master
in repository eclipse-wtp.

commit ccfb60fa79a42243f6a45204408149b1bcc0cabf
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date:   Thu Jul 10 12:16:50 2014 +0200

    Store temporary files created by d/get-orig-source in /tmp
---
 debian/get-orig-source | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/debian/get-orig-source b/debian/get-orig-source
index 5876c51..410c5e8 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -22,7 +22,8 @@ platform/eclipse.platform.releng:20120528-1648:org.eclipse.license
 
 ECLIPSE_GIT_WEB=http://git.eclipse.org/c
 
-rm -rf ${NAME}-${VERSION}
+TMP_DIR=`mktemp -d`
+WORK_DIR=$PWD
 
 VERSION_UNDERSCORE=$(echo $VERSION | sed "s/\./_/g")
 
@@ -66,6 +67,8 @@ downloadSnapshot() {
 	rm -r $MODULE_DIR
 }
 
+cd "$TMP_DIR"
+
 mkdir modules
 cd modules
 
@@ -80,7 +83,7 @@ mkdir ${NAME}-${VERSION}
 while read LINE ; do
 	echo "Picking $LINE"
 	mv modules/$LINE ${NAME}-${VERSION}
-done < wtpbundles
+done < "$WORK_DIR/debian/wtpbundles"
 
 rm -rf modules
 
@@ -177,8 +180,6 @@ rm -rf org.eclipse.wst.xsl.core/lib
 cd ..
 
 echo "Creating tarball '${NAME}_${DEB_VERSION}.orig.tar.xz'..."
-tar -cJf ../${NAME}_${DEB_VERSION}.orig.tar.xz $NAME-$VERSION
-
-exit 1
+tar -cJf "$WORK_DIR/../${NAME}_${DEB_VERSION}.orig.tar.xz" $NAME-$VERSION
 
-rm -rf ${NAME}-${VERSION}
+rm -rf "$TMP_DIR"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/eclipse-wtp.git



More information about the pkg-java-commits mailing list