mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
Added rpmbuild detection
This commit is contained in:
parent
2b6e61e353
commit
e9dc0c0ace
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue