[Pkg-kde-commits] rev 1549 - scripts

Adeodato Simó adeodato at costa.debian.org
Wed Aug 24 11:09:53 UTC 2005


Author: adeodato
Date: 2005-08-24 11:09:52 +0000 (Wed, 24 Aug 2005)
New Revision: 1549

Modified:
   scripts/tag-pkg-kde
Log:
Allow tag-pkg-kde to copy from other directories than /trunk/packages,
e.g.:

  tag-pkg-kde -d /branches/kde-3.4.0/packages kdelibs


Modified: scripts/tag-pkg-kde
===================================================================
--- scripts/tag-pkg-kde	2005-08-24 04:24:54 UTC (rev 1548)
+++ scripts/tag-pkg-kde	2005-08-24 11:09:52 UTC (rev 1549)
@@ -2,6 +2,12 @@
 
 # $Id$
 # Simple script to create a tag in the pkg-kde repo at svn.debian.org
+
+# Use it like "tag-pkg-kde module". It will figure out the version, and
+# ask for confirmation. If you'd like to tag a previous version, pass a
+# svn revision with the -r option; if you'd like to make a tag from e.g.
+# /branches, pass a directory with the -d option (default: /trunk/packages).
+
 # (C) 2005, Adeodato Simó <asp16 at alu.ua.es>
 # GPL'ed code follows.
 
@@ -14,7 +20,7 @@
 TAGDIR='printf %s-%s "$PACKAGE" "$VERSION"'
 
 usage () {
-    echo >&2 "Usage: `basename $0` [ -n ] [ -r REV ] package"
+    echo >&2 "Usage: `basename $0` [ -n ] [ -r REV ] [ -d DIR ] package"
     exit 1
 }
 
@@ -27,6 +33,14 @@
 	-r*)
 	    REV="`echo $1 | sed -re 's/-r(\w+).*/\1/'`"
 	    ;;
+	-d)
+	    TRUNK="${REPO}/$2"
+	    shift
+	    ;;
+	-d*)
+	    TRUNK="${REPO}/`echo $2 | sed -e 's/^-d//'`"
+	    shift
+	    ;;
 	-n)
 	    NOACT=echo
 	    ;;




More information about the Pkg-kde-commits mailing list