[med-svn] r19657 - trunk/packages/libhmsbeagle/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Sat Jul 18 17:38:24 UTC 2015
Author: tille
Date: 2015-07-18 17:38:23 +0000 (Sat, 18 Jul 2015)
New Revision: 19657
Modified:
trunk/packages/libhmsbeagle/trunk/debian/changelog
trunk/packages/libhmsbeagle/trunk/debian/get-orig-source
Log:
New Git checkout featuring functionality used in beast-mcmc release
Modified: trunk/packages/libhmsbeagle/trunk/debian/changelog
===================================================================
--- trunk/packages/libhmsbeagle/trunk/debian/changelog 2015-07-18 16:20:44 UTC (rev 19656)
+++ trunk/packages/libhmsbeagle/trunk/debian/changelog 2015-07-18 17:38:23 UTC (rev 19657)
@@ -1,3 +1,9 @@
+libhmsbeagle (2.1.2+20150609-1) UNRELEASED; urgency=medium
+
+ * New Git checkout featuring functionality used in beast-mcmc release
+
+ -- Andreas Tille <tille at debian.org> Sat, 18 Jul 2015 18:44:44 +0200
+
libhmsbeagle (2.1.2-1) unstable; urgency=medium
* New upstream version
Modified: trunk/packages/libhmsbeagle/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/libhmsbeagle/trunk/debian/get-orig-source 2015-07-18 16:20:44 UTC (rev 19656)
+++ trunk/packages/libhmsbeagle/trunk/debian/get-orig-source 2015-07-18 17:38:23 UTC (rev 19657)
@@ -1,37 +1,36 @@
#!/bin/sh
-# get source for libbeagle-java from SVN because there is no source tarball distribution
+COMPRESS=xz
+
set -e
+
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-UPSTREAMNAME=beagle
-UPSTREAMLOC=${UPSTREAMNAME}-lib
-COMPRESSION=xz
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
-if ! echo $@ | grep -q upstream-version ; then
- VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
-else
- VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${UPSTREAMNAME}_release.*?\1?"`
- if echo "$VERSION" | grep -q "upstream-version" ; then
- echo "Unable to parse version number"
- exit
- fi
-fi
-
-SVNTAG=`echo ${VERSION} | sed 's/\./_/g'`
-rm -f ../${UPSTREAMNAME}_release_${SVNTAG}
-RELEASE=${UPSTREAMNAME}_release_${SVNTAG}
TARDIR=${NAME}-${VERSION}
-
mkdir -p ../tarballs
cd ../tarballs
-# svn export conserves time stamps of the files, checkout does not
-LC_ALL=C svn export http://${UPSTREAMLOC}.googlecode.com/svn/tags/${RELEASE} ${TARDIR}
+# 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/beagle-dev/beagle-lib.git
+mv beagle-lib ${TARDIR}
+rm -rf ${TARDIR}/.git
+# remove binaries
+find . -name epochtest -type f -delete
+find . -name .dirstamp -type f -delete
+find . -name .cproject -type f -delete
+find . -name .project -type f -delete
+find . -name "*.isl" -type f -delete
+find . -name "*.isproj" -type f -delete
+find . -name "*.props" -type f -delete
+find . -name "*.vcxproj*" -type f -delete
+find . -name "*.exe" -type f -delete
+find . -name "*.bat" -type f -delete
+find . -name "*.sln" -type f -delete
+find . -name .dirs -type d | xargs rm -rf
+find . -type d -empty | xargs rm -rf
+rm -rf ${TARDIR}/project
-rm -f "${TARDIR}"/.gitignore
-
-# Directory contains code for MSC including binary dlls which need to be deleted anyway
-# Once we are about to remove something just kick the whole dir ...
-rm -rf "${TARDIR}"/project
-
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX --exclude-vcs -caf "$NAME"_"$VERSION".orig.tar.${COMPRESSION} "${TARDIR}"
-rm -rf "${TARDIR}"
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}
More information about the debian-med-commit
mailing list