Added rpmbuild detection

This commit is contained in:
Jaroslav Kysela 2004-03-14 17:06:24 +00:00
parent 2b6e61e353
commit e9dc0c0ace

View file

@ -4,6 +4,8 @@ source=.
version=`cat $source/../version` version=`cat $source/../version`
package=$source/../alsa-utils-$version.tar.bz2 package=$source/../alsa-utils-$version.tar.bz2
packagedir=/usr/src/redhat packagedir=/usr/src/redhat
xrpmbuild=rpm
rpmbuild --usage 2> /dev/null > /dev/null && xrpmbuild=rpmbuild
# SuSE path # SuSE path
if [ -d /usr/src/packages ]; then if [ -d /usr/src/packages ]; then
@ -38,5 +40,5 @@ fi
cp -fv $source/alsa-utils.spec ${packagedir}/SPECS cp -fv $source/alsa-utils.spec ${packagedir}/SPECS
cd ${packagedir}/SPECS cd ${packagedir}/SPECS
rpm -ba alsa-utils.spec $xrpmbuild -ba alsa-utils.spec
cd ${packagedir} cd ${packagedir}