mirror of
				https://git.proxmox.com/git/mirror_spl-debian
				synced 2025-11-04 09:27:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			708 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			708 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
#
 | 
						|
# Launchpad PPA build helper.
 | 
						|
#
 | 
						|
 | 
						|
PPA_USER=${PPA_USER:-$(whoami)}
 | 
						|
PPA_NAME='spl'
 | 
						|
PPA_DISTRIBUTION_LIST='lucid natty oneiric precise quantal'
 | 
						|
PPA_GENCHANGES='-sa'
 | 
						|
 | 
						|
if [ ! -d debian/ ]
 | 
						|
then
 | 
						|
	echo 'Error: The debian/ directory is not in the current working path.'
 | 
						|
	exit 1
 | 
						|
fi
 | 
						|
 | 
						|
for ii in $PPA_DISTRIBUTION_LIST
 | 
						|
do
 | 
						|
	# Change the first line of the debian/changelog file
 | 
						|
	# from: MyPackage (1.2.3-4) unstable; urgency=low
 | 
						|
	# to: MyPackage (1.2.3-4~distname) distname; urgency=low
 | 
						|
	debchange --local="~$ii" --distribution="$ii" dummy
 | 
						|
	sed -i -e '2,8d' debian/changelog
 | 
						|
 | 
						|
	debuild -S "$PPA_GENCHANGES"
 | 
						|
	git checkout debian/changelog
 | 
						|
 | 
						|
	# Only do a full upload on the first build.
 | 
						|
	PPA_GENCHANGES='-sd'
 | 
						|
done
 |