mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			719 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			719 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| source=.
 | |
| version=`cat $source/../version`
 | |
| package=$source/../../alsa-lib-$version.tar.bz2
 | |
| 
 | |
| make -C .. pack
 | |
| 
 | |
| if [ ! -r $package ]; then
 | |
|   package=$source/../alsa-lib-$version.tar.bz2
 | |
|   if [ ! -r $package ]; then
 | |
|     echo "Error: wrong package: $package"
 | |
|     exit 1
 | |
|   fi
 | |
| 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/alsa-lib.spec ]; then
 | |
|   cd $source/..
 | |
|   ./configure
 | |
|   cd utils
 | |
| fi
 | |
| 
 | |
| cp -fv $source/alsa-lib.spec /usr/src/redhat/SPECS
 | |
| cd /usr/src/redhat/SPECS
 | |
| rpm -ba alsa-lib.spec
 | |
| cd /usr/src/redhat
 | 
