[packages/chromium-browser/DEVEL] create .diff patches if branch point is detected (.0 symlink)

glen glen at pld-linux.org
Fri Jan 4 22:43:37 CET 2013


commit 9337d6097957e1062273baa1d6b1cb0f6dd69685
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 3 14:51:58 2013 +0200

    create .diff patches if branch point is detected (.0 symlink)

 get-source.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/get-source.sh b/get-source.sh
index 2a2c041..32c1b81 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -96,6 +96,15 @@ mv $LOGFILE $DIST_DIR
 
 rm -rf $TMP_DIR
 
+# create diff patches
+BASEVER=${VERSION%.*}.0
+if [ -e $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT ]; then
+	base=$(readlink -f $DIST_DIR/$PACKAGE_NAME-$BASEVER.tar.$EXT)
+	current=$DIST_DIR/$PACKAGE_NAME-$VERSION.tar.$EXT
+	sh -x $WORK_DIR/make-diff-patch.sh $base $current
+	mv $PACKAGE_NAME-$VERSION.patch.$EXT $DIST_DIR
+fi
+
 # try updating spec and build it as well
 if [ -x $WORK_DIR/update-source.sh ]; then
 	build_package=1 \
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list