[27087] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25940 - trunk/debathena/scripts

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon Apr 22 14:13:28 2013

Date: Mon, 22 Apr 2013 14:13:21 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201304221813.r3MIDLI2016299@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2013-04-22 14:13:21 -0400 (Mon, 22 Apr 2013)
New Revision: 25940

Modified:
   trunk/debathena/scripts/daupload-proposed
Log:
Allow overriding of DEBIAN_CODES (e.g., if you need to build and upload
for a single release).  This is preferable to running 'dareprepro include' 
by hand.


Modified: trunk/debathena/scripts/daupload-proposed
===================================================================
--- trunk/debathena/scripts/daupload-proposed	2013-04-22 16:21:46 UTC (rev 25939)
+++ trunk/debathena/scripts/daupload-proposed	2013-04-22 18:13:21 UTC (rev 25940)
@@ -20,6 +20,14 @@
 : ${DA_SCRIPTS_DIR="$(dirname "$0")"}
 . "$DA_SCRIPTS_DIR"/debian-versions.sh
 
+if [ -n "$DEBIAN_CODES_OVERRIDE" ]; then
+    echo "Will override DEBIAN_CODES with: $DEBIAN_CODES_OVERRIDE"
+    echo -n "Continue? [y/N]"
+    read a
+    [ "$a" = "y" ]
+    DEBIAN_CODES="$DEBIAN_CODES_OVERRIDE"
+fi
+
 case "$(basename "$0")" in
     daupload-release)
 	release=""
@@ -111,6 +119,11 @@
     done
 fi
 
+if [ -n "$DEBIAN_CODES_OVERRIDE" ]; then
+    echo "Codes overridden, skipping copy of files.  Cleanup by hand."
+    exit 0
+fi
+
 changes=$change
 for code in $DEBIAN_CODES; do
     tag=$(gettag "$code")


home help back first fref pref prev next nref lref last post