[med-svn] r11415 - trunk/packages/fis-gtm/fis-gtm/trunk/debian

Yaroslav Halchenko yoh at alioth.debian.org
Thu Jun 21 14:47:46 UTC 2012


Author: yoh
Date: 2012-06-21 14:47:46 +0000 (Thu, 21 Jun 2012)
New Revision: 11415

Modified:
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
Log:
get-orig-source: fetch tarball from github of pre-release snapshots

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2012-06-21 14:21:39 UTC (rev 11414)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2012-06-21 14:47:46 UTC (rev 11415)
@@ -29,6 +29,7 @@
     - generate lintian-overrides for shlib-with-executable-stack
     - provide dumped from web changelog for the most recent release
     - utilize gtminstall script for the 2nd-stage build/installation
+    - get-orig-source: fetch tarball from github of pre-release snapshots
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Wed, 13 Jun 2012 19:27:19 -0400
 

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-21 14:21:39 UTC (rev 11414)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2012-06-21 14:47:46 UTC (rev 11415)
@@ -9,6 +9,7 @@
 
 ARCH := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 UVER := $(shell LC_ALL=C dpkg-parsechangelog | awk '/^Version:/{print $$2;}' | sed -e 's,-[^-]*$$,,g')
+UVERGIT := $(shell echo $(UVER) | sed 's,.*+git[0-9]*-g,,' 2>/dev/null | grep -v '-')
 # Strip any +REV, e.g. +gitXX-gTREEISH
 UAPIVER := $(shell echo $(UVER) | sed -e 's,+.*,,')
 UAPIDIR := V$(UAPIVER)_$(ARCH)
@@ -48,7 +49,13 @@
 	dh_lintian
 
 get-orig-source:
-	uscan --verbose --force-download
+	: # If no treeish -- standard release -- fetch using uscan,
+	: # otherwise fetch corresponding treeish from GIT
+	if [ -z '$(UVERGIT)' ]; then \
+		uscan --verbose --force-download; \
+	else \
+		wget -q -O../fis-gtm_$(UVER).orig.tar.gz https://github.com/luisibanez/fis-gtm/tarball/$(UVERGIT); \
+	fi
 
 override_dh_auto_clean:
 	dh_auto_clean




More information about the debian-med-commit mailing list