[med-svn] r10833 - trunk/packages/vcftools/trunk/debian

Andreas Tille tille at alioth.debian.org
Sat May 12 07:52:50 UTC 2012


Author: tille
Date: 2012-05-12 07:52:50 +0000 (Sat, 12 May 2012)
New Revision: 10833

Modified:
   trunk/packages/vcftools/trunk/debian/changelog
   trunk/packages/vcftools/trunk/debian/get-orig-source
   trunk/packages/vcftools/trunk/debian/rules
   trunk/packages/vcftools/trunk/debian/watch
Log:
Make sure we always get the latest version of vcftools


Modified: trunk/packages/vcftools/trunk/debian/changelog
===================================================================
--- trunk/packages/vcftools/trunk/debian/changelog	2012-05-12 07:49:20 UTC (rev 10832)
+++ trunk/packages/vcftools/trunk/debian/changelog	2012-05-12 07:52:50 UTC (rev 10833)
@@ -1,8 +1,10 @@
-vcftools (0.1.8-1) UNRELEASED; urgency=low
+vcftools (0.1.9-1) UNRELEASED; urgency=low
 
   * New upstream version
   * debian/upstream: Added citations
-  * Standards-Version: 3.9.3 (no changes needed)
+  * debian/control:Standards-Version: 3.9.3 (no changes needed)
+  * debian/{get-orig-source,rules,watch}: Make sure we always get the
+    latest version
 
  -- Andreas Tille <tille at debian.org>  Sat, 12 May 2012 09:31:58 +0200
 

Modified: trunk/packages/vcftools/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/vcftools/trunk/debian/get-orig-source	2012-05-12 07:49:20 UTC (rev 10832)
+++ trunk/packages/vcftools/trunk/debian/get-orig-source	2012-05-12 07:52:50 UTC (rev 10833)
@@ -2,11 +2,16 @@
 
 #set -x
 PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-DVERSION=`dpkg-parsechangelog | awk '/^Version/ { print $2 }' | cut -d- -f1`
+if ! echo $@ | grep -q upstream-version ; then
+    DVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | cut -d- -f1`
+else
+    DVERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${PKG}.*?\1?"`
+    if echo "$DVERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
 
-mkdir -p ../tarballs
-uscan --verbose --force-download --destdir=../tarballs --no-symlink
-
 cd ../tarballs
 tar -xzf ${PKG}_${DVERSION}.tar.gz
 cd ${PKG}_${DVERSION}
@@ -15,6 +20,6 @@
 find . -name "*.pdf" | xargs rm -f
 cd ..
 
-GZIP="--best --no-name" tar -czf "$PKG"_"$DVERSION".orig.tar.gz ${PKG}_${DVERSION}
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$PKG"_"$DVERSION".orig.tar.gz ${PKG}_${DVERSION}
 rm -rf  ${PKG}_${DVERSION}
 

Modified: trunk/packages/vcftools/trunk/debian/rules
===================================================================
--- trunk/packages/vcftools/trunk/debian/rules	2012-05-12 07:49:20 UTC (rev 10832)
+++ trunk/packages/vcftools/trunk/debian/rules	2012-05-12 07:52:50 UTC (rev 10833)
@@ -24,4 +24,5 @@
 	dh_auto_install
 
 get-orig-source:
-	. debian/get-orig-source
+	mkdir -p ../tarballs
+	uscan --verbose --force-download --destdir=../tarballs --no-symlink

Modified: trunk/packages/vcftools/trunk/debian/watch
===================================================================
--- trunk/packages/vcftools/trunk/debian/watch	2012-05-12 07:49:20 UTC (rev 10832)
+++ trunk/packages/vcftools/trunk/debian/watch	2012-05-12 07:52:50 UTC (rev 10833)
@@ -1,4 +1,5 @@
 # Compulsory line, this is a version 3 file
 version=3
 
-http://sf.net/vcftools/vcftools_(\d*\.\d*\.\d*)\.tar\.gz
+http://sf.net/vcftools/vcftools_(\d*\.\d*\.\d*)\.tar\.gz \
+  debian debian/get-orig-source




More information about the debian-med-commit mailing list