[packages/chromium-browser/DEVEL] for beta and dev channels, move the diff pointer

glen glen at pld-linux.org
Sun Jan 13 17:42:22 CET 2013


commit ce99e0e33428a829fbd63d87ef159cf79cc29656
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 13 17:21:00 2013 +0200

    for beta and dev channels, move the diff pointer

 get-source.sh      | 6 +++++-
 make-diff-patch.sh | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/get-source.sh b/get-source.sh
index 15f8cfd..5fa6fe9 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -92,7 +92,7 @@ cd ../..
 
 tarball=$PACKAGE_NAME-$VERSION.tar.$EXT
 # xz -9 OOM's on carme
-XZ_OPT=-e8 tar -cf $tarball --$EXT $PACKAGE_NAME-$VERSION
+XZ_OPT=-e8 tar -caf $tarball $PACKAGE_NAME-$VERSION
 ls -lh $tarball
 
 rm -rf $PACKAGE_NAME-$VERSION
@@ -114,6 +114,10 @@ if [ -e $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT ]; then
 	current=$DIST_DIR/$PACKAGE_NAME-$VERSION.tar.$EXT
 	sh -x $WORK_DIR/make-diff-patch.sh $base $current
 	mv $PACKAGE_NAME-$VERSION.patch.xz $DIST_DIR
+	# for beta and dev channels, move the diff pointer
+	if [ "$CHANNEL" != "stable" ]; then
+		ln -sf $PACKAGE_NAME-$VERSION.tar.$EXT $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT
+	fi
 fi
 
 # try updating spec and build it as well
diff --git a/make-diff-patch.sh b/make-diff-patch.sh
index 7d602e7..b85878a 100755
--- a/make-diff-patch.sh
+++ b/make-diff-patch.sh
@@ -37,6 +37,7 @@ else
 	ls -lh $patch
 	diffstat $patch | tee $patch.diff
 	cat $patch.diff $patch | xz -9 > $patch.xz
+	rm $patch.diff $patch
 fi
 
 rm -rf $dstdir $srcdir
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/ce99e0e33428a829fbd63d87ef159cf79cc29656



More information about the pld-cvs-commit mailing list