From c56b1f2193cfa6338b8efe9cdee12755ede54ccb Mon Sep 17 00:00:00 2001 From: Scott Barninger Date: Sun, 16 Jul 2006 21:27:20 +0000 Subject: [PATCH] Add build switch for wxconsole. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3156 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/platforms/contrib-rpm/build_rpm.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.2