]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add --show-bcond-args to builder to work with repackage.sh script
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 20 Nov 2006 08:36:44 +0000 (08:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.466

builder.sh

index 4e70a4067aa2726ef4b5f57d2860110785afdeb7..363e80557901a2acf40ac12ba060764a6223719b 100644 (file)
@@ -302,6 +302,9 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
                     - don't apply <patchnumber>
 --show-bconds       - show available conditional builds, which can be used
                     - with --with and/or --without switches.
+--show-bcond-args   - show active bconds, from ~/.bcondrc. this is used by
+                      ./repackage.sh script. in other words, the output is
+                      parseable by scripts.
 --with/--without <feature>
                     - conditional build package depending on %_with_<feature>/
                       %_without_<feature> macro switch.  You may now use
@@ -1944,6 +1947,10 @@ while [ $# -gt 0 ]; do
                        COMMAND="show_bconds"
                        shift
                        ;;
+               --show-bcond-args)
+                       COMMAND="show_bcond_args"
+                       shift
+                       ;;
                --nodeps)
                        shift
                        RPMOPTS="${RPMOPTS} --nodeps"
@@ -2002,6 +2009,15 @@ case "$COMMAND" in
                        display_bconds
                fi
                ;;
+       "show_bcond_args")
+               init_builder
+               if [ -n "$SPECFILE" ]; then
+                       get_spec > /dev/null
+                       parse_spec
+                       set_bconds_values
+                       echo "$BCOND"
+               fi
+               ;;
        "build" | "build-binary" | "build-source" | "build-prep" )
                init_builder
                if [ -n "$SPECFILE" ]; then
This page took 0.059401 seconds and 4 git commands to generate.