[Debtags-commits] [svn] r747 - libdebtags/trunk
Enrico Zini
debtags-commits@lists.alioth.debian.org
Fri, 13 May 2005 15:00:38 +0000
Author: enrico
Date: Fri May 13 15:00:38 2005
New Revision: 747
Modified:
libdebtags/trunk/new_release
Log:
Updated the devel helper script
Modified: libdebtags/trunk/new_release
==============================================================================
--- libdebtags/trunk/new_release (original)
+++ libdebtags/trunk/new_release Fri May 13 15:00:38 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