SOURCES: kde4send2builders.sh - use autotag fetch from "autotag" func from ...

glen glen at pld-linux.org
Mon Mar 2 12:24:32 CET 2009


Author: glen                         Date: Mon Mar  2 11:24:32 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use autotag fetch from "autotag" func from rpm-build-macros

---- Files affected:
SOURCES:
   kde4send2builders.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/kde4send2builders.sh
diff -u SOURCES/kde4send2builders.sh:1.4 SOURCES/kde4send2builders.sh:1.5
--- SOURCES/kde4send2builders.sh:1.4	Mon Mar  2 12:19:58 2009
+++ SOURCES/kde4send2builders.sh	Mon Mar  2 12:24:27 2009
@@ -1,8 +1,11 @@
 #!/bin/bash
-# author: Bartosz Świątek (shadzik at pld-linux.org)
+# Author: Bartosz Świątek (shadzik at pld-linux.org)
 #
 # helps sending kde4 specs in proper order with or without autotags
 
+# TODO:
+# - get rid of bashism: SENDPRIO+="$spec:$LAST_AUTOTAG "
+
 usage() {
 	echo "Usage: $0 OPTIONS SPECS"
 	echo ""
@@ -83,35 +86,35 @@
 done
 
 specs=`for s in $specs; do
-        case "$s" in
-        all) # all kde4 specs
-                echo $LIBS $BASE $OTHER $KOFFICE
-                ;;
-        libs) # kde4 libs and pimlibs
-                echo $LIBS
-                ;;
-        base) # kde4-kdebase-*
-                echo $BASE
-                ;;
-        other) # kde4-*
-                echo $OTHER
-                ;;
-        koffice) # kde4-koffice
-                echo $KOFFICE
-                ;;
-        almost-all) # all but koffice
-                echo $LIBS $BASE $OTHER
-                ;;
-        *) # not listed ones
-                echo $s
-                ;;
-        esac
+	case "$s" in
+	all) # all kde4 specs
+			echo $LIBS $BASE $OTHER $KOFFICE
+			;;
+	libs) # kde4 libs and pimlibs
+			echo $LIBS
+			;;
+	base) # kde4-kdebase-*
+			echo $BASE
+			;;
+	other) # kde4-*
+			echo $OTHER
+			;;
+	koffice) # kde4-koffice
+			echo $KOFFICE
+			;;
+	almost-all) # all but koffice
+			echo $LIBS $BASE $OTHER
+			;;
+	*) # not listed ones
+			echo $s
+			;;
+	esac
 done`
 
 
 if [ "$ATAG" == "yes" ]; then
 	for spec in $specs; do
-		LAST_AUTOTAG=$(cvs status -v SPECS/$spec |grep auto-$DIST |head -1 |awk '{print $1}')
+		LAST_AUTOTAG=$(cvs status -v SPECS/$spec | awk -vdist=ac '!/Sticky/ && $0 ~ "auto-" dist "-"{if (!a++) print $1}')
 		SENDPRIO+="$spec:$LAST_AUTOTAG "
 	done
 else
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kde4send2builders.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list