]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- allow `ac-requires --sn ac-ready libssh2` like usage
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 21 Feb 2008 17:59:05 +0000 (17:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.42

rpm-build.sh

index 3632efb40a1748b0915713961f1e586550a0df3e..de55c3513c5a41cf5e3c121bb58a8ca5b4c8df78 100644 (file)
@@ -15,10 +15,10 @@ esac
 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 @@ specutfundo() {
        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"
This page took 0.16416 seconds and 4 git commands to generate.