mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 16:04:02 +00:00 
			
		
		
		
	update-maintainer: Convert to plain #! /bin/sh.
This commit is contained in:
		
							parent
							
								
									2e09e4bc9c
								
							
						
					
					
						commit
						b0afe064f6
					
				
							
								
								
									
										3
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@ -8,6 +8,9 @@ ubuntu-dev-tools (0.46) UNRELEASED; urgency=low
 | 
			
		||||
    extracting files from them
 | 
			
		||||
  * Add Recommends: genisoimage for ubuntuiso
 | 
			
		||||
 | 
			
		||||
  [ Colin Watson ]
 | 
			
		||||
  * update-maintainer: Convert to plain #! /bin/sh.
 | 
			
		||||
 | 
			
		||||
 -- Matt Zimmerman <mdz@ubuntu.com>  Thu, 02 Oct 2008 22:34:44 +0100
 | 
			
		||||
 | 
			
		||||
ubuntu-dev-tools (0.45) intrepid; urgency=low
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
#
 | 
			
		||||
# Copyright 2007 (C) Albin Tonnerre (Lutin) <lut1n.tne@gmail.com>
 | 
			
		||||
#
 | 
			
		||||
@ -58,12 +58,13 @@ done
 | 
			
		||||
cd ${path-.}
 | 
			
		||||
 | 
			
		||||
# look for the debian directory
 | 
			
		||||
if [ -f debian/control -a -f debian/changelog ]; then
 | 
			
		||||
if [ -f debian/control ] && [ -f debian/changelog ]; then
 | 
			
		||||
    DEBIANDIR=debian
 | 
			
		||||
elif [ -f control -a -f changelog ]; then
 | 
			
		||||
elif [ -f control ] && [ -f changelog ]; then
 | 
			
		||||
    DEBIANDIR=.
 | 
			
		||||
else
 | 
			
		||||
    echo "Please execute «$0» in the source folder." >&2 && exit 1
 | 
			
		||||
    echo "Please execute «$0» in the source folder." >&2
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ ! -r $DEBIANDIR/changelog ]
 | 
			
		||||
@ -71,16 +72,16 @@ then
 | 
			
		||||
    echo "Make sure that the changelog file is readable." >&2 && exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
for file in control{,.in,.real}; do
 | 
			
		||||
for file in control control.in control.real; do
 | 
			
		||||
    if [ -f $DEBIANDIR/$file ]; then
 | 
			
		||||
        if [ ! -r $DEBIANDIR/$file -o ! -w $DEBIANDIR/$file ]; then
 | 
			
		||||
        if [ ! -r $DEBIANDIR/$file ] || [ ! -w $DEBIANDIR/$file ]; then
 | 
			
		||||
            echo "Make sure that the control file(s) is (are) readable and writable." >&2 && exit 1
 | 
			
		||||
        fi
 | 
			
		||||
        controls="$controls $file"
 | 
			
		||||
    fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
if [ -z "$(head -1 $DEBIANDIR/changelog | grep -E '\(*ubuntu.*\)')" ]
 | 
			
		||||
if ! head -1 $DEBIANDIR/changelog | grep -q '(*ubuntu.*)'
 | 
			
		||||
then
 | 
			
		||||
	echo "Latest changelog entry has no Ubuntu version number." >&2
 | 
			
		||||
	exit 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user