mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 03:19:43 +01:00
Updated for SuSE and automake
This commit is contained in:
parent
39cc208f0a
commit
69e927ffd4
1 changed files with 15 additions and 8 deletions
|
@ -2,24 +2,31 @@
|
||||||
|
|
||||||
source=.
|
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
|
||||||
|
|
||||||
make -C .. pack
|
# SuSE path
|
||||||
|
if [ -d /usr/src/packages ]; then
|
||||||
|
packagedir=/usr/src/packages
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -C .. clean
|
||||||
|
make -C .. dist
|
||||||
|
|
||||||
if [ ! -r $package ]; then
|
if [ ! -r $package ]; then
|
||||||
echo "Error: wrong package: $package"
|
echo "Error: wrong package: $package"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -fv $package /usr/src/redhat/SOURCES
|
cp -fv $package ${packagedir}/SOURCES
|
||||||
|
|
||||||
if [ ! -r $source/buildrpm ]; then
|
if [ ! -r $source/buildrpm ]; then
|
||||||
echo "Error: invalid directory: $source"
|
echo "Error: invalid directory: $source"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d /usr/src/redhat ]; then
|
if [ ! -d ${packagedir} ]; then
|
||||||
echo "Error: /usr/src/redhat directory not found"
|
echo "Error: ${packagedir} directory not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -29,7 +36,7 @@ if [ ! -r $source/alsadriver.spec ]; then
|
||||||
cd utils
|
cd utils
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -fv $source/alsa-utils.spec /usr/src/redhat/SPECS
|
cp -fv $source/alsa-utils.spec ${packagedir}/SPECS
|
||||||
cd /usr/src/redhat/SPECS
|
cd ${packagedir}/SPECS
|
||||||
rpm -ba alsa-utils.spec
|
rpm -ba alsa-utils.spec
|
||||||
cd /usr/src/redhat
|
cd ${packagedir}
|
||||||
|
|
Loading…
Reference in a new issue