[med-svn] r19005 - trunk/packages/libdsol1-java/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Mon Mar 30 07:00:56 UTC 2015
Author: tille
Date: 2015-03-30 07:00:55 +0000 (Mon, 30 Mar 2015)
New Revision: 19005
Modified:
trunk/packages/libdsol1-java/trunk/debian/get-orig-source.sh
Log:
The old CVS repository does not exist any more but was moved to sourceforge. This is reflected in get-orig-source script. HOWEVER, it does not download the 1.6 series but a later 2.x version. This will be sorted out on the mailing list
Modified: trunk/packages/libdsol1-java/trunk/debian/get-orig-source.sh
===================================================================
--- trunk/packages/libdsol1-java/trunk/debian/get-orig-source.sh 2015-03-30 06:58:07 UTC (rev 19004)
+++ trunk/packages/libdsol1-java/trunk/debian/get-orig-source.sh 2015-03-30 07:00:55 UTC (rev 19005)
@@ -1,28 +1,32 @@
-#!/bin/bash
+#!/bin/sh
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`dpkg-parsechangelog | awk '/^Version/ { print $2 }' | sed -e 's/^[0-9]*://' -e 's/-.*//'`
+
if ! [ -e debian/changelog ] ; then
echo "Run this from the source directory"
exit 1
fi
-# We just assume that DSOL is v1.6.9 as it's not been updated in ever.
-cd ..
-if [ -e libdsol1-java-1.6.9 ] ; then
- echo "../libdsol1-java-1.6.9 already exists, so won't overwrite it."
- exit 1
-fi
+mkdir -p ../tarballs
+cd ../tarballs
-mkdir libdsol1-java-1.6.9
-cd libdsol1-java-1.6.9
+rm -rf ${NAME}-${VERSION}
+mkdir ${NAME}-${VERSION}
+cd ${NAME}-${VERSION}
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-language language
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-event event
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-logger logger
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-naming naming
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-jstats jstats
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-interpreter interpreter
-cvs -d :pserver:dsoluser at sk-3.tbm.tudelft.nl:/home/dsol/1.6 export -r HEAD -d dsol-introspection introspection
+cvs -d :pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol login
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-language language
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-event event
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-logger logger
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-naming naming
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-jstats jstats
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-interpreter interpreter
+cvs -z3 -d:pserver:anonymous at dsol.cvs.sourceforge.net:/cvsroot/dsol export -r HEAD -d dsol-introspection introspection
+find . -type f -name "*.jar" -delete
+find . -type f -name ".cvs*" -delete
cd ..
-tar -cvJf libdsol1-java_1.6.9.orig.tar.xz libdsol1-java-1.6.9
-mv libdsol1-java-1.6.9 libdsol1-java-1.6.9.orig
+tar --owner=root --group=root --mode=a+rX -caf ${NAME}_${VERSION}.orig.tar.xz ${NAME}-${VERSION}
+mv ${NAME}-${VERSION} ${NAME}-${VERSION}.orig
More information about the debian-med-commit
mailing list