r14475: patch from Oliver Schulze L. <oliver@samera.com.py> for BUG 3580. Make RHEL...
authorGerald Carter <jerry@samba.org>
Thu, 16 Mar 2006 13:48:01 +0000 (13:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:33 +0000 (11:15 -0500)
(This used to be commit 7d73973db1a9133d6165b52031f09257046a64f7)

packaging/RHEL/makerpms.sh.tmpl

index e6c178f6f3c5782663ec7f1a22b48e0013e1b630..ebaa4e649f71c0aebe7fc5df591fa4ad34edb3e8 100644 (file)
@@ -11,6 +11,8 @@
 #   /usr/src/redhat directory
 #
 
+EXTRA_OPTIONS="$1"
+
 SPECDIR=`rpm --eval %_specdir`
 SRCDIR=`rpm --eval %_sourcedir`
 
@@ -39,7 +41,9 @@ esac
 ( cd ../../source; if [ -f Makefile ]; then make distclean; fi )
 ( cd ../../.. ; chown -R ${USERID}.${GRPID} samba-${VERSION} )
 
+echo -n "Creating samba-${VERSION}.tar.bz2 ... "
 ( cd ../../.. ; tar --exclude=.svn -cf - samba-${VERSION}/. | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 )
+echo "Done."
 
 ##
 ## copy additional source files
@@ -51,9 +55,9 @@ cp -p ${SPECFILE} ${SPECDIR}
 ##
 ## Build
 ##
-echo Getting Ready to build release package
+echo "$(basename $0): Getting Ready to build release package"
 cd ${SPECDIR}
-${RPM} -ba --clean --rmsource $SPECFILE
+${RPM} -ba --clean --rmsource $EXTRA_OPTIONS $SPECFILE
 
-echo Done.
+echo "$(basename $0): Done."