[med-svn] r2213 - in trunk/packages/mgltools: . packging_helpers

smoe-guest at alioth.debian.org smoe-guest at alioth.debian.org
Thu Jul 10 08:33:28 UTC 2008


Author: smoe-guest
Date: 2008-07-10 08:33:26 +0000 (Thu, 10 Jul 2008)
New Revision: 2213

Added:
   trunk/packages/mgltools/packging_helpers/
   trunk/packages/mgltools/packging_helpers/cvs_updates_all
   trunk/packages/mgltools/packging_helpers/svn_buildpackage_all
Log:
First series of scrip(p)ts to assist the packaging.


Added: trunk/packages/mgltools/packging_helpers/cvs_updates_all
===================================================================
--- trunk/packages/mgltools/packging_helpers/cvs_updates_all	                        (rev 0)
+++ trunk/packages/mgltools/packging_helpers/cvs_updates_all	2008-07-10 08:33:26 UTC (rev 2213)
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+CVSCHECKOUTDIR=mgltools-cvs
+
+if [ "--help" == "$1" -o "-h" == "$1" ]; then
+cat <<EOHELP
+Usage: `basename $0` [cvscheckoutdir]
+
+This script performs the update of the MGLtools CVS repository 
+whenever a new release of the package should be performed.
+
+The checkout directory is set by default to '$CVSCHECKOUTDIR' by
+may be reset by the first argument.
+EOHELP
+	exit -1
+fi
+
+if [ -n "$1" ]; then
+    CVSCHECKOUTDIR=$1
+fi
+
+if [ ! -d "$CVSCHECKOUTDIR" ]; then
+    echo "Could not find directory with checked out source packages at '$CVSCHECKOUTDIR'."
+    exit -1
+fi
+
+# To prepare the tar files
+
+for d in *; do
+    if [ -d "$d" ]; then
+      tfn=`echo $d | sed -e "s/-$VERSIONNAME/_$VERSIONNAME.orig.tar.gz/" | tr 'A-Z' 'a-z'`
+      echo taring $d to $tfn
+      GZIP=-9 tar --exclude CVS -czvf $tfn $d
+    fi
+done
+
+# Place the tarballs into the right directory as symbolic links
+TARBALLDIR=./tarballs
+if [ -d "$TARBALLDIR" ]; then
+ 
+else
+    mkdir "$TARBALLDIR"
+fi
+
+ln *.tar.gz ../tarballs
+
+Now, to have these tarballs found, the version in the 'debian/changelog'
+files need to match. From debian-med/trunk/packages/mgltools execute
+the following lines to add the new version to the changelogs
+
+        for i in */trunk/debian; do
+                d=`dirname $i`
+                (cd $d && DEBEMAIL=moeller at debian.org debchange --preserve --newversion $VERSIONNAME "New upstream version.")
+        done
+
+

Added: trunk/packages/mgltools/packging_helpers/svn_buildpackage_all
===================================================================
--- trunk/packages/mgltools/packging_helpers/svn_buildpackage_all	                        (rev 0)
+++ trunk/packages/mgltools/packging_helpers/svn_buildpackage_all	2008-07-10 08:33:26 UTC (rev 2213)
@@ -0,0 +1,14 @@
+for i in */trunk
+do
+        echo
+	echo
+	echo ################# `dirname $i` ##############
+	echo
+	if [ -d "$i/debian" ]; then
+		(cd $i && svn-b)
+	else
+		echo "`dirname $i`: debian directory not found"
+	fi
+	echo
+done
+




More information about the debian-med-commit mailing list