SPECS: repackage.sh - process --define for rpm-specdump

glen glen at pld-linux.org
Tue Feb 12 21:24:19 CET 2008


Author: glen                         Date: Tue Feb 12 20:24:18 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- process --define for rpm-specdump

---- Files affected:
SPECS:
   repackage.sh (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: SPECS/repackage.sh
diff -u SPECS/repackage.sh:1.24 SPECS/repackage.sh:1.25
--- SPECS/repackage.sh:1.24	Mon Feb 11 23:23:13 2008
+++ SPECS/repackage.sh	Tue Feb 12 21:24:13 2008
@@ -48,6 +48,10 @@
 			a="$a $1 $2"
 			shift
 			;;
+		--define)
+			a="$a $1 \"$2\""
+			shift
+			;;
 		-*)
 			;;
 		*)
@@ -57,7 +61,7 @@
 		shift
 	done
 	set -x
-	rpm-specdump $a
+	eval rpm-specdump $a
 }
 
 specfile="${1%.spec}.spec"; shift
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/repackage.sh?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list