SPECS: workcleanup.sh - now allow to pass arguments for rpm after ...
agaran
agaran at pld-linux.org
Thu Aug 10 21:40:23 CEST 2006
Author: agaran Date: Thu Aug 10 19:40:23 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- now allow to pass arguments for rpm after specfile
---- Files affected:
SPECS:
workcleanup.sh (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/workcleanup.sh
diff -u SPECS/workcleanup.sh:1.5 SPECS/workcleanup.sh:1.6
--- SPECS/workcleanup.sh:1.5 Fri Jul 28 00:13:24 2006
+++ SPECS/workcleanup.sh Thu Aug 10 21:40:18 2006
@@ -4,7 +4,7 @@
# it just builds source rpm then cleans CVS/Entries, nothing more
spec="$1"
-
+shift
if [ -z "$spec" ]; then
echo "I need argument, preferably spec filename"
exit 1
@@ -24,7 +24,7 @@
LIST=$("$dir/specparser.pl" --asf "$spec");
if [ "$PARTIAL" = "" ]; then
- rpmbuild -bs --rmsource --rmspec --clean "$spec"
+ rpmbuild -bs --rmsource --rmspec --clean "$spec" $@
fi
if [ $? = 0 ]; then
# /3DKit.spec/1.10/Wed Jan 18 12:46:16 2006//
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/workcleanup.sh?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list