From 9b78be5070754f0d1a9c6815ddf7e76ab80f2276 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 20 Nov 2006 08:36:44 +0000 Subject: [PATCH] - add --show-bcond-args to builder to work with repackage.sh script Changed files: builder.sh -> 1.466 --- builder.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/builder.sh b/builder.sh index 4e70a40..363e805 100644 --- a/builder.sh +++ b/builder.sh @@ -302,6 +302,9 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build] - don't apply --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 - conditional build package depending on %_with_/ %_without_ 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 -- 2.44.0