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

Andreas Tille tille at moszumanska.debian.org
Sun Jul 19 12:45:59 UTC 2015


Author: tille
Date: 2015-07-19 12:45:58 +0000 (Sun, 19 Jul 2015)
New Revision: 19668

Modified:
   trunk/packages/libjam-java/trunk/debian/changelog
   trunk/packages/libjam-java/trunk/debian/get-orig-source
   trunk/packages/libjam-java/trunk/debian/watch
Log:
New Git checkout featuring functionality used in beast-mcmc release


Modified: trunk/packages/libjam-java/trunk/debian/changelog
===================================================================
--- trunk/packages/libjam-java/trunk/debian/changelog	2015-07-19 10:50:53 UTC (rev 19667)
+++ trunk/packages/libjam-java/trunk/debian/changelog	2015-07-19 12:45:58 UTC (rev 19668)
@@ -1,3 +1,9 @@
+jam-lib (0.1.20140824-1) UNRELEASED; urgency=medium
+
+  * New Git checkout featuring functionality used in beast-mcmc release
+
+ -- Andreas Tille <tille at debian.org>  Sun, 19 Jul 2015 14:42:56 +0200
+
 jam-lib (0.0.r304-1) unstable; urgency=low
 
   * New upstream version

Modified: trunk/packages/libjam-java/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/libjam-java/trunk/debian/get-orig-source	2015-07-19 10:50:53 UTC (rev 19667)
+++ trunk/packages/libjam-java/trunk/debian/get-orig-source	2015-07-19 12:45:58 UTC (rev 19668)
@@ -1,17 +1,26 @@
 #!/bin/sh
-# get source for jam-lib from SVN
 
-NAME=jam-lib
+COMPRESS=xz
 
-rm -f ../detail
+set -e
+
+ORIGNAME=jam-lib
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+#VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+
 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}
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+git clone --quiet https://github.com/rambaut/${ORIGNAME}.git
+cd ${ORIGNAME}
+VERSION=0.1.`git log  -n 1 --format="%ad" --date=short | sed 's/-//g'`
+cd ..
+TARDIR=${NAME}-${VERSION}
+mv ${ORIGNAME} ${TARDIR}
+rm -rf ${TARDIR}/.git
+rm -rf ${TARDIR}/lib
 
-find ${NAME} -name .svn -type d -exec rm -rf \{\} \;
-rm -f ${NAME}/lib/*.jar
-
-GZIP="--best --no-name" tar -caf "$NAME"_"$VERSION".orig.tar.xz "${NAME}"
-rm -rf "${NAME}"
+tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}

Modified: trunk/packages/libjam-java/trunk/debian/watch
===================================================================
--- trunk/packages/libjam-java/trunk/debian/watch	2015-07-19 10:50:53 UTC (rev 19667)
+++ trunk/packages/libjam-java/trunk/debian/watch	2015-07-19 12:45:58 UTC (rev 19668)
@@ -1,10 +1,2 @@
-# 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
+# Upstream does not tag its releases so there is no chance to
+# write a proper watch file
\ No newline at end of file




More information about the debian-med-commit mailing list