[med-svn] r5952 - trunk/packages/libjam-java/trunk/debian

Andreas Tille tille at alioth.debian.org
Fri Feb 11 15:45:14 UTC 2011


Author: tille
Date: 2011-02-11 15:45:10 +0000 (Fri, 11 Feb 2011)
New Revision: 5952

Added:
   trunk/packages/libjam-java/trunk/debian/get-orig-source
   trunk/packages/libjam-java/trunk/debian/watch
Modified:
   trunk/packages/libjam-java/trunk/debian/changelog
Log:
Added watch file which observes status in SVN. ATTENTION: This might (or might not) serve as an example for any project which has only code in SVN


Modified: trunk/packages/libjam-java/trunk/debian/changelog
===================================================================
--- trunk/packages/libjam-java/trunk/debian/changelog	2011-02-11 14:13:48 UTC (rev 5951)
+++ trunk/packages/libjam-java/trunk/debian/changelog	2011-02-11 15:45:10 UTC (rev 5952)
@@ -1,4 +1,4 @@
-jam-lib (0.0.20110207-1) unstable; urgency=low
+jam-lib (0.0.r297-1) unstable; urgency=low
 
   * Initial Debian Upload (Closes: #NNNNNN)
 

Added: trunk/packages/libjam-java/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/libjam-java/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/libjam-java/trunk/debian/get-orig-source	2011-02-11 15:45:10 UTC (rev 5952)
@@ -0,0 +1,17 @@
+#!/bin/sh
+# get source for jam-lib from SVN
+
+NAME=jam-lib
+
+rm -f ../detail
+mkdir -p ../tarballs
+cd ../tarballs
+# svn export concerves time stamps of the files, checkout does not
+REV=`LC_ALL=C svn export http://${NAME}.googlecode.com/svn/trunk/ ${NAME} | tail -n 1 | sed 's/^.*revision \([0-9]\+\)./\1/'`
+VERSION=0.0.r${REV}
+
+find ${NAME} -name .svn -type d -exec rm -rf \{\} \;
+rm -f ${NAME}/lib/*.jar
+
+GZIP="--best --no-name" tar -czf "$NAME"_"$VERSION".orig.tar.gz "${NAME}"
+rm -rf "${NAME}"


Property changes on: trunk/packages/libjam-java/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/libjam-java/trunk/debian/watch
===================================================================
--- trunk/packages/libjam-java/trunk/debian/watch	                        (rev 0)
+++ trunk/packages/libjam-java/trunk/debian/watch	2011-02-11 15:45:10 UTC (rev 5952)
@@ -0,0 +1,10 @@
+# Obtaining the source tarball of jam-lib is a bit tricky because there is no
+# explicite link to a downloadable tarball on the web page and the source is
+# only in SVN.  There is even no versioning scheme and this watch file is just
+# checking for a new SVN commit
+
+version=3
+opts="dversionmangle=s/0.0.r//" \
+  http://code.google.com/p/jam-lib/source/list \
+    detail\?r=([\d]+) \
+  debian debian/get-orig-source




More information about the debian-med-commit mailing list