]> git.sur5r.net Git - bacula/bacula/commitdiff
Add build switch for wxconsole.
authorScott Barninger <scott@barninger.com>
Sun, 16 Jul 2006 21:27:20 +0000 (21:27 +0000)
committerScott Barninger <scott@barninger.com>
Sun, 16 Jul 2006 21:27:20 +0000 (21:27 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3156 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/platforms/contrib-rpm/build_rpm.sh

index b320758b1da9cc6d5081d933198cc55559969e5f..8ca8131cc724346dbd36c6dfa5b3991ce5b29179 100755 (executable)
@@ -32,8 +32,8 @@ PLATFORM=su10
 MYSQL=4
 
 # building wxconsole
-# if your platform does not support building wxconsole (wxWidgets >= 2.6)
-# delete the line [--define "build_wxconsole 1" \] below:
+# set to 1 to build wxconsole package else set 0
+WXCONSOLE=0
 
 # enter your name and email address here
 PACKAGER="Your Name <your-email@site.org>"
@@ -48,15 +48,19 @@ ARCH=i586
 
 SRPM=bacula-$VERSION-$RELEASE.src.rpm
 
-# if your platform does not support wxconsole delete the line below
-# defining build_wxconsole
 echo Building MySQL packages for "$PLATFORM"...
 sleep 2
+if [ "$WXCONSOLE" = "1" ]; then
 rpmbuild --rebuild --define "build_${PLATFORM} 1" \
 --define "build_mysql${MYSQL} 1" \
 --define "contrib_packager ${PACKAGER}" \
 --define "build_wxconsole 1" \
 ${SRPM}
+else
+rpmbuild --rebuild --define "build_${PLATFORM} 1" \
+--define "build_mysql${MYSQL} 1" \
+--define "contrib_packager ${PACKAGER}" ${SRPM}
+fi
 
 echo Building PostgreSQL packages for "$PLATFORM"...
 sleep 2