]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/contrib-rpm/rpm_wizard.sh
Add new Spanish files translated
[bacula/bacula] / bacula / platforms / contrib-rpm / rpm_wizard.sh
index c26b32342d073805b6438c7b383eb6a2429e1236..89857dc6238f49dfb5e63b3442af3e098d19804d 100755 (executable)
@@ -20,7 +20,7 @@ fi
 zenity --question --text "Bacula rpm rebuilding wizard. Do you wish to continue?"
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 fi
@@ -32,34 +32,34 @@ PACKAGER=`zenity --text-info --editable --height=25 --width=300 --title="Enter Y
 SELECTED_FILE=`zenity --file-selection --title "Choose SRPM file to rebuild"`
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 fi
 
 # select build platform
-PLATFORM=`zenity --title "Select Platform" --text "Please choose a build platform." --list --radiolist --column "Select" --column "Platform" False rh7 False rh8 False rh9 False fc1 False fc3 False fc4 False fc5 False wb3 False rhel3 False rhel4 False centos3 False centos4 False su9 False su10 False mdk False mdv`
+PLATFORM=`zenity --title "Select Platform" --text "Please choose a build platform." --list --radiolist --column "Select" --column "Platform" False rh7 False rh8 False rh9 False fc1 False fc3 False fc4 False fc5 False fc6 False fc7 False fc8 False fc9 False wb3 False rhel3 False rhel4 False rhel5 False centos3 False centos4 False centos5 False sl3 False sl4 False sl5 False su9 False su10 False su102 False su103 False su110 False su111 False mdk False mdv`
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 fi
 
 # select database support
-DATABASE=`zenity --title "Select Database" --text "Please choose database support." --list --radiolist --column "Select" --column "Platform" False sqlite False mysql False mysql4 False mysql5 False postgresql False client_only`
+DATABASE=`zenity --title "Select Database" --text "Please choose database support." --list --radiolist --column "Select" --column "Database" False sqlite False mysql False mysql4 False mysql5 False postgresql False client_only`
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 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 False build_python`
+OPTIONS=`zenity --title "Select Options" --text "Please choose other options." --list --checklist --column "Select" --column "Other" False build_bat False build_wxconsole False nobuild_gconsole False build_x86_64 False build_python`
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 fi
@@ -68,6 +68,7 @@ OPTION1=`echo $OPTIONS|cut --delimiter=\| -f1`
 OPTION2=`echo $OPTIONS|cut --delimiter=\| -f2`
 OPTION3=`echo $OPTIONS|cut --delimiter=\| -f3`
 OPTION4=`echo $OPTIONS|cut --delimiter=\| -f4`
+OPTION5=`echo $OPTIONS|cut --delimiter=\| -f5`
 
 # construct rpmbuild command
 COMMAND="rpmbuild --rebuild --define 'build_$PLATFORM 1' --define 'build_$DATABASE 1' --define 'contrib_packager ${PACKAGER}'"
@@ -88,13 +89,17 @@ if [ ! -z $OPTION4 ];
 then
         COMMAND="${COMMAND} --define '$OPTION4 1'";
 fi
+if [ ! -z $OPTION5 ];
+then
+        COMMAND="${COMMAND} --define '$OPTION5 1'";
+fi
 
 COMMAND="${COMMAND} ${SELECTED_FILE}"
 
 zenity --question --text "Ready to rebuild the src rpm with $COMMAND. Do you wish to continue?"
 
 RESULT="$?"
-if [ "$RESULT" == "1" ];
+if [ "$RESULT" = "1" ];
 then
         exit;
 fi
@@ -105,3 +110,11 @@ echo $COMMAND | sh
 # ChangeLog
 # 30 Jul 2006 initial release
 # 05 Aug 2006 add option for build_python
+# 27 Jan 2007 add fc6
+# 29 Apr 2007 add sl3 & sl4 target and bat option
+# 06 May 2007 add fc7 target
+# 10 Nov 2007 add rhel5 and su103 targets
+# 12 Jan 2008 add fc8 target
+# 23 May 2008 add fc9 target
+# 28 Jun 2008 add su110 target
+# 31 Dec 2008 add su111 target