[packages/rpm-build-tools/merge-pld-builder-client: 61/2675] - use autotag fetch from "autotag" func from rpm-build-macros

glen glen at pld-linux.org
Mon Dec 19 21:54:03 CET 2016


commit 263b922ba6cfcbd71fd2fb64f8e9db5ca436d246
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Mar 2 11:24:27 2009 +0000

    - use autotag fetch from "autotag" func from rpm-build-macros
    
    Changed files:
        client/kde4send2builders.sh -> 1.5

 kde4send2builders.sh | 53 +++++++++++++++++++++++++++-------------------------
 1 file changed, 28 insertions(+), 25 deletions(-)
---
diff --git a/kde4send2builders.sh b/kde4send2builders.sh
index c630933..2d31c55 100644
--- a/kde4send2builders.sh
+++ b/kde4send2builders.sh
@@ -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 @@ while [ $# -gt 0 ]; do
 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd



More information about the pld-cvs-commit mailing list