[med-svn] r3002 - trunk/packages/R/r-cran-xtable/trunk/debian

tille at alioth.debian.org tille at alioth.debian.org
Sat Jan 17 08:27:31 UTC 2009


Author: tille
Date: 2009-01-17 08:27:31 +0000 (Sat, 17 Jan 2009)
New Revision: 3002

Added:
   trunk/packages/R/r-cran-xtable/trunk/debian/get-orig-source
Modified:
   trunk/packages/R/r-cran-xtable/trunk/debian/rules
   trunk/packages/R/r-cran-xtable/trunk/debian/watch
Log:
Get properly named upstream source


Added: trunk/packages/R/r-cran-xtable/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/R/r-cran-xtable/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/R/r-cran-xtable/trunk/debian/get-orig-source	2009-01-17 08:27:31 UTC (rev 3002)
@@ -0,0 +1,7 @@
+#!/bin/sh
+PKG=xtable
+RENAME=`uscan --verbose --force-download | \
+   grep "Newest version on remote site is .* local version is .*" | \
+   head -n 1 | \
+   sed "s?Newest .* \([-0-9.]\+\),.* \([0-9.]\+\)?mv ../${PKG}_\1.orig.tar.gz ../${PKG}_\2.orig.tar.gz?"`
+$RENAME

Modified: trunk/packages/R/r-cran-xtable/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-xtable/trunk/debian/rules	2009-01-17 08:00:46 UTC (rev 3001)
+++ trunk/packages/R/r-cran-xtable/trunk/debian/rules	2009-01-17 08:27:31 UTC (rev 3002)
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 # 							-*- makefile -*-
-# debian/rules file for the Debian/GNU Linux r-cran-gplots package
-# Copyright 2003-2006 by Dirk Eddelbuettel <edd at debian.org>
+# debian/rules file for the Debian/GNU Linux r-cran-xtable package
+# Copyright 2009 by Andreas Tille <tille at debian.org>
 
 include /usr/share/R/debian/r-cran.mk
+
+get-orig-source:
+	. debian/get-orig-source

Modified: trunk/packages/R/r-cran-xtable/trunk/debian/watch
===================================================================
--- trunk/packages/R/r-cran-xtable/trunk/debian/watch	2009-01-17 08:00:46 UTC (rev 3001)
+++ trunk/packages/R/r-cran-xtable/trunk/debian/watch	2009-01-17 08:27:31 UTC (rev 3002)
@@ -1,3 +1,6 @@
 version=3
-opts="uversionmangle=s/([\d.]+)-(\d)/$1.$2/" \
+# Same effect as dversionmangle, but we have to rename the orig.tar.gz
+# anyway and it is easier to write a get-origsource script this way
+# opts="uversionmangle=s/([\d.]+)-(\d)/$1.$2/"
+opts="dversionmangle=s/([\d.]+)\.(\d)/$1-$2/" \
 http://cran.r-project.org/src/contrib/xtable_([-\d.]*)\.tar\.gz




More information about the debian-med-commit mailing list