[Debtags-commits] [svn] r745 - libtagcoll/trunk

Enrico Zini debtags-commits@lists.alioth.debian.org
Fri, 13 May 2005 14:58:34 +0000


Author: enrico
Date: Fri May 13 14:58:34 2005
New Revision: 745

Modified:
   libtagcoll/trunk/new_release
   libtagcoll/trunk/svntag
Log:
Updated the two devel helper scripts

Modified: libtagcoll/trunk/new_release
==============================================================================
--- libtagcoll/trunk/new_release	(original)
+++ libtagcoll/trunk/new_release	Fri May 13 14:58:34 2005
@@ -3,7 +3,10 @@
 PKG=`head -1 debian/changelog | cut -f 1 -d ' '`
 VER=`head -1 debian/changelog | cut -f 2 -d ' ' | sed 's/(\|)//g'`
 UVER=`echo $VER | cut -f 1 -d '-'`
-DVER=`echo $VER | cut -f 2 -d '-'`
+if echo $VER | grep -q -- -
+then
+	DVER=`echo $VER | cut -f 2 -d '-'`
+fi
 
 STARTTIME=`date +%s`
 
@@ -16,21 +19,27 @@
 	SVN=svk
 fi
 
+# Decide the building directory
+BUILDDIR="/tmp/$PKG-$UVER"
+if [ -d "$BUILDDIR" ]
+then
+	echo "$BUILDDIR already exists" >&2
+	exit 1
+fi
+
+
 if [ -z "$DVER" ]
 then
 	# New Debian native version
-	echo "New debian native version not yet implemented"
-	exit 0;
+	echo "New debian native version"
+	$SVN export . "$BUILDDIR"
+	cd $BUILDDIR
+	./autogen.sh
+	debuild
 elif [ "$DVER" = 1 ]
 then
 	# New upstream version
-	BUILDDIR="/tmp/$PKG-$UVER"
-
-	if [ -d "$BUILDDIR" ]
-	then
-		echo "$BUILDDIR already exists" >&2
-		exit 1
-	fi
+	echo "New upstream version"
 
 	$SVN export . "$BUILDDIR"
 	cd $BUILDDIR
@@ -48,3 +57,5 @@
 ELAPSED=`expr $ENDTIME - $STARTTIME`
 
 echo "Build took `expr $ELAPSED / 60` minutes and `expr $ELAPSED % 60` seconds"
+
+exit 0

Modified: libtagcoll/trunk/svntag
==============================================================================
--- libtagcoll/trunk/svntag	(original)
+++ libtagcoll/trunk/svntag	Fri May 13 14:58:34 2005
@@ -1,4 +1,10 @@
 #!/bin/sh
-VER=${1:?Usage: $0 ver}
-PKG=libtagcoll1
-svn copy -m "Tagging version $VER" svn+ssh://alioth.debian.org/svn/debtags/$PKG/trunk svn+ssh://alioth.debian.org/svn/debtags/$PKG/tags/$PKG-$VER
+PKG=`head -1 debian/changelog | cut -f 1 -d ' '`
+VER=`head -1 debian/changelog | cut -f 2 -d ' ' | sed 's/(\|)//g'`
+UVER=`echo $VER | cut -f 1 -d '-'`
+if echo $VER | grep -q -- -
+then
+	DVER=`echo $VER | cut -f 2 -d '-'`
+fi
+
+svn copy -m "Tagging version $VER" svn+ssh://svn.debian.org/svn/debtags/$PKG/trunk svn+ssh://svn.debian.org/svn/debtags/$PKG/tags/$PKG-$VER