From: Scott Barninger Date: Sat, 5 Aug 2006 20:32:58 +0000 (+0000) Subject: Add build_python X-Git-Tag: Release-7.0.0~7773 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55da8535812c2ea133a26c42fda77b8c82d3c919;p=bacula%2Fbacula Add build_python git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3248 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/contrib-rpm/rpm_wizard.sh b/bacula/platforms/contrib-rpm/rpm_wizard.sh index 20e02a4071..b34ebf6b62 100755 --- a/bacula/platforms/contrib-rpm/rpm_wizard.sh +++ b/bacula/platforms/contrib-rpm/rpm_wizard.sh @@ -56,7 +56,7 @@ then fi # select other build options -OPTIONS=`zenity --title "Select Options" --text "Please choose other options." --list --checklist --column "Select" --column "Platform" False build_wxconsole False nobuild_gconsole False build_x86_64` +OPTIONS=`zenity --title "Select Options" --text "Please choose other options." --list --checklist --column "Select" --column "Platform" False build_wxconsole False nobuild_gconsole False build_x86_64 False build_python` RESULT="$?" if [ "$RESULT" == "1" ]; @@ -67,6 +67,7 @@ fi OPTION1=`echo $OPTIONS|cut --delimiter=\| -f1` OPTION2=`echo $OPTIONS|cut --delimiter=\| -f2` OPTION3=`echo $OPTIONS|cut --delimiter=\| -f3` +OPTION4=`echo $OPTIONS|cut --delimiter=\| -f4` # construct rpmbuild command COMMAND="rpmbuild --rebuild --define 'build_$PLATFORM 1' --define 'build_$DATABASE 1' --define 'contrib_packager ${PACKAGER}'" @@ -83,6 +84,10 @@ if [ ! -z $OPTION3 ]; then COMMAND="${COMMAND} --define '$OPTION3 1'"; fi +if [ ! -z $OPTION4 ]; +then + COMMAND="${COMMAND} --define '$OPTION4 1'"; +fi COMMAND="${COMMAND} ${SELECTED_FILE}" @@ -99,4 +104,5 @@ echo $COMMAND | sh # ChangeLog # 30 Jul 2006 initial release +# 05 Aug 2006 add option for build_python