[med-svn] r787 - trunk/packages/bioimagesuite/trunk/debian
tille at alioth.debian.org
tille at alioth.debian.org
Sun Nov 11 17:09:03 UTC 2007
Author: tille
Date: 2007-11-11 17:09:03 +0000 (Sun, 11 Nov 2007)
New Revision: 787
Added:
trunk/packages/bioimagesuite/trunk/debian/get-orig-source
Modified:
trunk/packages/bioimagesuite/trunk/debian/rules
Log:
Versioning for orig.tar.gz for get-orig-src target
Added: trunk/packages/bioimagesuite/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/bioimagesuite/trunk/debian/get-orig-source (rev 0)
+++ trunk/packages/bioimagesuite/trunk/debian/get-orig-source 2007-11-11 17:09:03 UTC (rev 787)
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+# This will download the original source tarball to ../tarballs
+TARDIR=`pwd`/../tarballs
+TARNAME=bioimagesuite_latest_Linux_g++32.tar.gz
+NAME=bioimagesuite
+
+mkdir -p "$TARDIR"
+wget --user anonymous --password bioimagesuite \
+ http://www.bioimagesuite.org/download/linux_gcc32/${TARNAME} \
+ -P "$TARDIR"
+
+# Obtain upstream version number from changelog
+# Unfortunately upstream does not maintain version numbers in their
+# tarball. So we have to relay on the correct version number in
+# debian/changelog
+version=`dpkg-parsechangelog | grep "^Version:" | sed -e "s/^Version:[[:space:]]\+\([\.0-9]\+\)-*[0-9]*[[:space:]]*/\1/"`
+
+# rebuild the tarball
+cd "$TARDIR"
+tar -xzf ${TARNAME}
+mv ${NAME} ${NAME}-${version}
+GZIP=-9 tar -czf ${NAME}_${version}.orig.tar.gz ${NAME}-${version}
+rm -rf ${NAME}-${version} ${TARNAME}
Property changes on: trunk/packages/bioimagesuite/trunk/debian/get-orig-source
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/packages/bioimagesuite/trunk/debian/rules
===================================================================
--- trunk/packages/bioimagesuite/trunk/debian/rules 2007-11-11 16:29:35 UTC (rev 786)
+++ trunk/packages/bioimagesuite/trunk/debian/rules 2007-11-11 17:09:03 UTC (rev 787)
@@ -69,9 +69,6 @@
get-orig-source:
# This will download the original source tarball
# to ../tarballs
- [ -d $(CURDIR)/../tarballs ] || mkdir $(CURDIR)/../tarballs
- wget --user anonymous --password bioimagesuite \
- http://www.bioimagesuite.org/download/linux_gcc32/bioimagesuite_latest_Linux_g++32.tar.gz \
- -P $(CURDIR)/../tarballs
-
+ sh debian/get-orig-source
+
.PHONY: build clean binary-indep binary-arch binary install
More information about the debian-med-commit
mailing list