mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-22 14:21:29 +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
|
extracting files from them
|
||||||
* Add Recommends: genisoimage for ubuntuiso
|
* 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
|
-- Matt Zimmerman <mdz@ubuntu.com> Thu, 02 Oct 2008 22:34:44 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.45) intrepid; urgency=low
|
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>
|
# Copyright 2007 (C) Albin Tonnerre (Lutin) <lut1n.tne@gmail.com>
|
||||||
#
|
#
|
||||||
@ -58,12 +58,13 @@ done
|
|||||||
cd ${path-.}
|
cd ${path-.}
|
||||||
|
|
||||||
# look for the debian directory
|
# look for the debian directory
|
||||||
if [ -f debian/control -a -f debian/changelog ]; then
|
if [ -f debian/control ] && [ -f debian/changelog ]; then
|
||||||
DEBIANDIR=debian
|
DEBIANDIR=debian
|
||||||
elif [ -f control -a -f changelog ]; then
|
elif [ -f control ] && [ -f changelog ]; then
|
||||||
DEBIANDIR=.
|
DEBIANDIR=.
|
||||||
else
|
else
|
||||||
echo "Please execute «$0» in the source folder." >&2 && exit 1
|
echo "Please execute «$0» in the source folder." >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -r $DEBIANDIR/changelog ]
|
if [ ! -r $DEBIANDIR/changelog ]
|
||||||
@ -71,16 +72,16 @@ then
|
|||||||
echo "Make sure that the changelog file is readable." >&2 && exit 1
|
echo "Make sure that the changelog file is readable." >&2 && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in control{,.in,.real}; do
|
for file in control control.in control.real; do
|
||||||
if [ -f $DEBIANDIR/$file ]; then
|
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
|
echo "Make sure that the control file(s) is (are) readable and writable." >&2 && exit 1
|
||||||
fi
|
fi
|
||||||
controls="$controls $file"
|
controls="$controls $file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -z "$(head -1 $DEBIANDIR/changelog | grep -E '\(*ubuntu.*\)')" ]
|
if ! head -1 $DEBIANDIR/changelog | grep -q '(*ubuntu.*)'
|
||||||
then
|
then
|
||||||
echo "Latest changelog entry has no Ubuntu version number." >&2
|
echo "Latest changelog entry has no Ubuntu version number." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user