From: Scott Barninger Date: Sun, 16 Jul 2006 21:27:20 +0000 (+0000) Subject: Add build switch for wxconsole. X-Git-Tag: Release-7.0.0~7862 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=deda0abdad3c895185ba4572d270f3aed65ab4c5;p=bacula%2Fbacula Add build switch for wxconsole. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3156 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/contrib-rpm/build_rpm.sh b/bacula/platforms/contrib-rpm/build_rpm.sh index b320758b1d..8ca8131cc7 100755 --- a/bacula/platforms/contrib-rpm/build_rpm.sh +++ b/bacula/platforms/contrib-rpm/build_rpm.sh @@ -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 " @@ -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