From 4405824392a01538beb6ee57b9741722adc5d475 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 21 Nov 2007 23:38:52 +0000 Subject: [PATCH] - add --alt_kernel option for convience Changed files: builder.sh -> 1.522 --- builder.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/builder.sh b/builder.sh index c9dd23d..8edd160 100644 --- a/builder.sh +++ b/builder.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# +# # This program is free software, distributed under the terms of # the GNU General Public License Version 2. # @@ -247,6 +247,8 @@ Usage: builder [-D|--debug] [-V|--version] [--short-version] [-a|--as_anon] [-b| - setup \$CVSROOT, --define - define a macro with value , +--alt_kernel + - same as --define 'alt_kernel ' --nodeps - rpm won't check any dependences -g, --get - get .spec and all related files from CVS repo or HTTP/FTP, @@ -1923,7 +1925,7 @@ while [ $# -gt 0 ]; do -c | --clean ) CLEAN="--clean --rmspec --rmsource"; shift ;; -cf | --cvs-force ) - CVS_FORCE="-F -B"; shift;; + CVS_FORCE="-F"; shift;; -d | --cvsroot ) shift; CVSROOT="${1}"; shift ;; -g | --get ) @@ -2097,6 +2099,11 @@ while [ $# -gt 0 ]; do RPMOPTS="${RPMOPTS} --define \"${MACRO} ${VALUE}\"" fi ;; + --alt_kernel) + shift + RPMOPTS="${RPMOPTS} --define \"alt_kernel $1\"" + shift + ;; --short-circuit) RPMBUILDOPTS="${RPMBUILDOPTS} --short-circuit" shift -- 2.44.0