SOURCES: rpm-build.sh - allow `ac-requires --sn ac-ready libssh2` ...
glen
glen at pld-linux.org
Thu Feb 21 18:59:11 CET 2008
Author: glen Date: Thu Feb 21 17:59:11 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- allow `ac-requires --sn ac-ready libssh2` like usage
---- Files affected:
SOURCES:
rpm-build.sh (1.41 -> 1.42)
---- Diffs:
================================================================
Index: SOURCES/rpm-build.sh
diff -u SOURCES/rpm-build.sh:1.41 SOURCES/rpm-build.sh:1.42
--- SOURCES/rpm-build.sh:1.41 Wed Jan 23 19:20:21 2008
+++ SOURCES/rpm-build.sh Thu Feb 21 18:59:05 2008
@@ -15,10 +15,10 @@
if [ "$dist" ]; then
alias ipoldek-$dist="poldek -q --sn $dist --cmd"
-alias $dist-requires="ipoldek-$dist what-requires"
alias $dist-provides="ipoldek-$dist what-provides"
alias $dist-tag="./builder -cf -T $(echo $dist | tr '[a-z]' '[A-Z]')-branch -r HEAD"
alias $dist-verify=dist-verify
+alias $dist-requires=dist-requires
# undo spec utf8
# note: it will do it blindly, so any lang other than -pl is most likely broken
@@ -29,6 +29,26 @@
rm -f m
}
+dist-requires() {
+ local opts deps
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ --sn)
+ opts="$opts $1 $2"
+ shift
+ ;;
+ -*)
+ opts="$opts $1"
+ ;;
+ *)
+ deps="$deps $1"
+ ;;
+ esac
+ shift
+ done
+ poldek -q --sn $dist $opts --cmd what-requires $deps
+}
+
dist-verify() {
local args sn
sn="--sn $dist"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm-build.sh?r1=1.41&r2=1.42&f=u
More information about the pld-cvs-commit
mailing list