[med-svn] r2349 - trunk/packages/mgltools/packging_helpers
smoe-guest at alioth.debian.org
smoe-guest at alioth.debian.org
Mon Jul 28 00:53:37 UTC 2008
Author: smoe-guest
Date: 2008-07-28 00:53:37 +0000 (Mon, 28 Jul 2008)
New Revision: 2349
Modified:
trunk/packages/mgltools/packging_helpers/cvs_updates_all
trunk/packages/mgltools/packging_helpers/svn_buildpackage_all
Log:
Script updates.
Modified: trunk/packages/mgltools/packging_helpers/cvs_updates_all
===================================================================
--- trunk/packages/mgltools/packging_helpers/cvs_updates_all 2008-07-27 23:16:32 UTC (rev 2348)
+++ trunk/packages/mgltools/packging_helpers/cvs_updates_all 2008-07-28 00:53:37 UTC (rev 2349)
@@ -69,4 +69,5 @@
(cd $d && DEBEMAIL=moeller at debian.org debchange -b --preserve --newversion "$VERSIONNAME-1" "New upstream version.")
done
-
+# Preparing symbolic links to allow "mgltools-" prefix
+(cd $TARBALLDIR && for i in *; do ln -s $i mgltools-$i; done )
Modified: trunk/packages/mgltools/packging_helpers/svn_buildpackage_all
===================================================================
--- trunk/packages/mgltools/packging_helpers/svn_buildpackage_all 2008-07-27 23:16:32 UTC (rev 2348)
+++ trunk/packages/mgltools/packging_helpers/svn_buildpackage_all 2008-07-28 00:53:37 UTC (rev 2349)
@@ -1,3 +1,12 @@
+#!/bin/bash
+
+moveto=`pwd`/build-area
+
+if [ ! -d "$moveto" ]; then
+ echo "Directory '$moveto' to move files to is not existing."
+ exit -1
+fi
+
for i in */trunk
do
echo
@@ -4,11 +13,21 @@
echo
echo ################# `dirname $i` ##############
echo
- if [ -d "$i/debian" ]; then
- (cd $i && svn-b)
- else
+ if [ ! -d "$i/debian" ]; then
echo "`dirname $i`: debian directory not found"
+ exit
fi
- echo
+ if [ ! -d "$i/.svn" ]; then
+ echo "`dirname $i`: could not find .svn directory"
+ exit
+ fi
+ if [ ! -r "$i/.svn/deb-layout" ]; then
+ echo "`dirname $i`: Creating deb-layout file."
+ cat<<EOCAT > $i/.svn/deb-layout
+origDir=../../tarballs
+buildArea=../../build-area
+EOCAT
+ fi
+ (cd $i && svn-buildpackage --svn-ignore --svn-reuse --svn-move-to=$moveto)
done
More information about the debian-med-commit
mailing list