]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Updated for SuSE and automake
authorJaroslav Kysela <perex@perex.cz>
Tue, 20 Nov 2001 09:04:26 +0000 (09:04 +0000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Nov 2001 09:04:26 +0000 (09:04 +0000)
utils/buildrpm

index d3aaf58f2893599d5a09dd3781121957c356660d..f2965b7faf3d155fafe8b0aceaacd0181bb7079a 100644 (file)
@@ -2,24 +2,31 @@
 
 source=.
 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
   echo "Error: wrong package: $package"
   exit 1
 fi
 
-cp -fv $package /usr/src/redhat/SOURCES
+cp -fv $package ${packagedir}/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"
+if [ ! -d ${packagedir} ]; then
+  echo "Error: ${packagedir} directory not found"
   exit 1
 fi
 
@@ -29,7 +36,7 @@ if [ ! -r $source/alsadriver.spec ]; then
   cd utils
 fi
 
-cp -fv $source/alsa-utils.spec /usr/src/redhat/SPECS
-cd /usr/src/redhat/SPECS
+cp -fv $source/alsa-utils.spec ${packagedir}/SPECS
+cd ${packagedir}/SPECS
 rpm -ba alsa-utils.spec
-cd /usr/src/redhat
+cd ${packagedir}