[eclipse-mylyn] 02/07: Store temporary files created by d/get-orig-source in /tmp

Jakub Adam xhaakon-guest at moszumanska.debian.org
Wed Jul 9 14:19:47 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-mylyn.

commit f610ad5cb67a04c477ad6df9fcf408466d392b13
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date:   Wed Jul 9 13:36:24 2014 +0200

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

diff --git a/debian/get-orig-source b/debian/get-orig-source
index c896d78..fdd83ce 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -16,7 +16,8 @@ org.eclipse.mylyn.reviews
 org.eclipse.mylyn.tasks
 org.eclipse.mylyn.versions"
 
-rm -rf ${NAME}-${VERSION}
+TMP_DIR=`mktemp -d`
+WORK_DIR=$PWD
 
 VERSION_UNDERSCORE=$(echo $VERSION | sed "s/\./_/g")
 
@@ -40,6 +41,8 @@ unzipTestProject() {
 	find $PROJECT_NAME -type f -name .cvsignore -delete
 }
 
+cd "$TMP_DIR"
+
 downloadSnapshot org.eclipse.mylyn.all
 cd org.eclipse.mylyn.all
 rm *.sh
@@ -75,6 +78,6 @@ cd ..
 mv org.eclipse.mylyn.all $NAME-$VERSION
 
 echo "Creating tarball '${NAME}_${DEB_VERSION}.orig.tar.xz'..."
-tar -cJf ../${NAME}_${DEB_VERSION}.orig.tar.xz $NAME-$VERSION
+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-mylyn.git



More information about the pkg-java-commits mailing list