alsa-utils/utils/buildrpm

36 lines
642 B
Text
Raw Normal View History

1998-08-13 17:43:39 +02:00
#!/bin/bash
source=.
version=`cat $source/../version`
2000-02-27 14:35:45 +01:00
package=$source/../../alsa-utils-$version.tar.bz2
1998-08-13 17:43:39 +02:00
1999-01-31 14:15:00 +01:00
make -C .. pack
1999-01-18 23:43:25 +01:00
1998-08-13 17:43:39 +02:00
if [ ! -r $package ]; then
echo "Error: wrong package: $package"
exit 1
fi
cp -fv $package /usr/src/redhat/SOURCES
if [ ! -r $source/buildrpm ]; then
echo "Error: invalid directory: $source"
exit 1
fi
if [ ! -d /usr/src/redhat ]; then
echo "Error: /usr/src/redhat directory not found"
exit 1
fi
if [ ! -r $source/alsadriver.spec ]; then
cd $source/..
./configure
cd utils
fi
cp -fv $source/alsa-utils.spec /usr/src/redhat/SPECS
cd /usr/src/redhat/SPECS
rpm -ba alsa-utils.spec
cd /usr/src/redhat