]> git.sur5r.net Git - bacula/bacula/commitdiff
Add clean of BUILD directory.
authorScott Barninger <scott@barninger.com>
Sun, 16 Jul 2006 21:50:21 +0000 (21:50 +0000)
committerScott Barninger <scott@barninger.com>
Sun, 16 Jul 2006 21:50:21 +0000 (21:50 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3157 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/platforms/contrib-rpm/build_rpm.sh

index 8ca8131cc724346dbd36c6dfa5b3991ce5b29179..c0d3eca711581182500e48220fca3158e5b8ff5c 100755 (executable)
@@ -41,6 +41,9 @@ PACKAGER="Your Name <your-email@site.org>"
 # enter the full path to your RPMS output directory
 RPMDIR=/usr/src/packages/RPMS/i586
 
+# enter the full path to your rpm BUILD directory
+RPMBUILD=/usr/src/packages/BUILD
+
 # enter your arch string here (i386, i586, i686)
 ARCH=i586
 
@@ -61,6 +64,7 @@ rpmbuild --rebuild --define "build_${PLATFORM} 1" \
 --define "build_mysql${MYSQL} 1" \
 --define "contrib_packager ${PACKAGER}" ${SRPM}
 fi
+rm -rf ${RPMBUILD}/*
 
 echo Building PostgreSQL packages for "$PLATFORM"...
 sleep 2
@@ -68,6 +72,7 @@ rpmbuild --rebuild --define "build_${PLATFORM} 1" \
 --define "build_postgresql 1" \
 --define "contrib_packager ${PACKAGER}" \
 --define "nobuild_gconsole 1" ${SRPM}
+rm -rf ${RPMBUILD}/*
 
 echo Building SQLite packages for "$PLATFORM"...
 sleep 2
@@ -75,6 +80,7 @@ rpmbuild --rebuild --define "build_${PLATFORM} 1" \
 --define "build_sqlite 1" \
 --define "contrib_packager ${PACKAGER}" \
 --define "nobuild_gconsole 1" ${SRPM}
+rm -rf ${RPMBUILD}/*
 
 # delete the updatedb package and any nodebug packages built
 rm -f ${RPMDIR}/bacula*debug*