From dfe2cb9a7b064de214c648c0a253ea43b14f02e8 Mon Sep 17 00:00:00 2001 From: Mikolaj Kucharski Date: Fri, 25 Nov 2005 11:23:12 +0000 Subject: [PATCH] - added `--show-bconds' switch, which shows you available bconds Changed files: builder.sh -> 1.350 --- builder.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/builder.sh b/builder.sh index fc7ccbb..7a934f1 100644 --- a/builder.sh +++ b/builder.sh @@ -184,7 +184,7 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build] [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest] [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version] [{-Tp|--tag-prefix} ] [{-tt|--test-tag}] -[-nu|--no-urls] [-v|--verbose] [--opts ] +[-nu|--no-urls] [-v|--verbose] [--opts ] [--show-bconds] [--with/--without ] [--define ] [.spec] -5, --update-md5 - update md5 comments in spec, implies -nd -ncs @@ -273,6 +273,8 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build] - refresh or make poldek package index files. -np, --nopatch - don't apply +--show-bconds - show available conditional builds, which can be used + - with --with and/or --without switches. --with/--without - conditional build package depending on %_with_/ %_without_ macro switch. You may now use @@ -1659,6 +1661,10 @@ do shift 2 RPMOPTS="${RPMOPTS} --define \"${MACRO} ${VALUE}\"" ;; + --show-bconds | -show-bconds | -print-bconds | --print-bconds | -display-bconds | --display-bconds ) + SHOW_BCONDS="yes" + shift + ;; --nodeps) shift RPMOPTS="${RPMOPTS} --nodeps" @@ -1693,6 +1699,9 @@ case "$COMMAND" in get_spec; set_bconds_values; display_bconds; + if [ X"$SHOW_BCONDS" = X"yes" ]; then + exit 0 + fi display_branches; fetch_build_requires; parse_spec; -- 2.44.0