|
@@ -6,7 +6,7 @@ TEXTDOMAINDIR=/usr/share/locale
|
|
|
|
|
|
Usage(){
|
|
|
cat<<EOF
|
|
|
-Usage: $(basename $0) {--version [version]} {--arch [arch]} {--category [categories]} {--dist-upgrade} {--target [target]} {--with-compat32} {--rpmbuild-with [bcond_with]} {--sign} {--no-install} {--bootstrap-dir [directory]} {--cache-dir [directory]} {--built-rpms-dir [directory]} {clean|build|build-rpm [src.rpm]|install-rpm [arch.rpm|package]|remove-rpm [package]|show-info}
|
|
|
+Usage: $(basename $0) {--version [version]} {--arch [arch]} {--category [categories]} {--dist-upgrade} {--target [target]} {--with-compat32} {--rpmbuild-define [macro_expr]} {--rpmbuild-with [bcond_with]} {--rpmbuild-without [bcond_with]} {--sign} {--no-install} {--bootstrap-dir [directory]} {--cache-dir [directory]} {--built-rpms-dir [directory]} {clean|build|build-rpm [src.rpm]|install-rpm [arch.rpm|package]|remove-rpm [package]|show-info}
|
|
|
|
|
|
Options:
|
|
|
--version: set [version] (default: ${DEFAULT_VERSION})
|
|
@@ -16,7 +16,9 @@ Options:
|
|
|
--unionfs: cover a bootstrap with unionfs
|
|
|
--target: build rpms with [target]
|
|
|
--with-compat32: build rpms with compat32 on boostrap
|
|
|
+ --rpmbuild-define: give a option --define [macro_expr] to rpmbuild
|
|
|
--rpmbuild-with: give a option --with [bcond_with] to rpmbuild
|
|
|
+ --rpmbuild-without: give a option --without [bcond_with] to rpmbuild
|
|
|
--sign: sign built rpms
|
|
|
--no-install: build only a source rpm - do NOT install a built rpm
|
|
|
--bootstrap-dir: set a bootstrap directory (default: ${VBOOTSTRAP_DIR})
|
|
@@ -59,7 +61,7 @@ check-parameter(){
|
|
|
Usage
|
|
|
return 1
|
|
|
;;
|
|
|
- --version|--arch|--category|--target|--rpmbuild-with|--bootstrap-dir|--cache-dir|--built-rpms-dir)
|
|
|
+ --version|--arch|--category|--target|--rpmbuild-define|--rpmbuild-with|--rpmbuild-without|--bootstrap-dir|--cache-dir|--built-rpms-dir)
|
|
|
[ $with_actions -eq 1 ] && \
|
|
|
echo $"E: You can give no more options after actions" && \
|
|
|
return 1
|
|
@@ -709,7 +711,7 @@ require-root $* || exit 1
|
|
|
while [ $# -gt 0 ]; do
|
|
|
tmpARG=$1
|
|
|
case $tmpARG in
|
|
|
- --version|--arch|--category|--target|--rpmbuild-with|--bootstrap-dir|--cache-dir|--built-rpms-dir)
|
|
|
+ --version|--arch|--category|--target|--rpmbuild-define|--rpmbuild-with|--rpmbuild-without|--bootstrap-dir|--cache-dir|--built-rpms-dir)
|
|
|
shift
|
|
|
;;
|
|
|
--dist-upgrade|--unionfs|--with-compat32|--sign|--no-install)
|
|
@@ -748,9 +750,15 @@ while [ $# -gt 0 ]; do
|
|
|
--with-compat32)
|
|
|
RPM_OPTS="${RPM_OPTS} --with compat32"
|
|
|
;;
|
|
|
+ --rpmbuild-define)
|
|
|
+ RPM_OPTS="${RPM_OPTS} --define $1"
|
|
|
+ ;;
|
|
|
--rpmbuild-with)
|
|
|
RPM_OPTS="${RPM_OPTS} --with $1"
|
|
|
;;
|
|
|
+ --rpmbuild-without)
|
|
|
+ RPM_OPTS="${RPM_OPTS} --without $1"
|
|
|
+ ;;
|
|
|
--sign)
|
|
|
with_sign=1
|
|
|
;;
|