[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force XSF toolbox SVN commit: r3 - trunk/bin



Author: branden
Date: 2004-07-10 18:04:56 -0500 (Sat, 10 Jul 2004)
New Revision: 3

Added:
   trunk/bin/markpending
Log:
Add markpending script.


Added: trunk/bin/markpending
===================================================================
--- trunk/bin/markpending	2004-07-10 22:56:51 UTC (rev 2)
+++ trunk/bin/markpending	2004-07-10 23:04:56 UTC (rev 3)
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+# $Id$
+
+# Copyright 2004 Branden Robinson
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+PROGNAME=${0##*/}
+BASEURL="svn://necrotic.deadbeast.net/"
+
+usage () {
+  cat <<EOF
+Usage: $PROGNAME bugnumber reponame revision
+Tag Debian BTS bug "bugnumber" as fixed in Debian X Strike Force "reponame"
+repository, revision number "revision".
+
+"revision" can be a colon-separated revision range or a simple revision number.
+
+Known reponames: Render XFree86 Xcursor Xft Xrender ctwm
+EOF
+}
+
+if [ $# -ne 3 ]; then
+    usage >&2
+    exit 2
+fi
+
+BUG="$1"
+REPO="$2"
+REV="$3"
+
+if expr "$REV" : "[0-9]\+:[0-9]\+" >/dev/null 2>&1; then
+    REVSTR="$REV"
+else
+    PREVREV=$(($REV - 1))
+    REVSTR="$PREVREV:$REV"
+fi
+
+case "$REPO" in
+    Render|XFree86|Xcursor|Xft|Xrender) SITE="Debian X Strike Force" ;;
+    ctwm) SITE="Branden Robinson's" ;;
+    *)
+        echo "$PROGNAME: repository \"$REPO\" unrecognized"
+        exit 2
+        ;;
+esac
+
+LC_REPO=$(echo "$REPO" | tr '[A-Z]' '[a-z]')
+URL="${BASEURL}${LC_REPO}"
+EXPLANATION="# fixed in $SITE $REPO repository; to view, run \"svn diff -r"
+EXPLANATION="$EXPLANATION $REVSTR $URL\""
+
+bts tag "$BUG" + pending "$EXPLANATION"
+
+exit
+
+# vim: set ai et sts=4 sw=4 tw=80:


Property changes on: trunk/bin/markpending
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:keywords
   + Id



Reply to: