From b0afe064f6bbb2eb689bc8645c6edb0953989f92 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 7 Oct 2008 05:54:49 +0100 Subject: [PATCH] update-maintainer: Convert to plain #! /bin/sh. --- debian/changelog | 3 +++ update-maintainer | 15 ++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4b385c8..6d826c9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 02 Oct 2008 22:34:44 +0100 ubuntu-dev-tools (0.45) intrepid; urgency=low diff --git a/update-maintainer b/update-maintainer index d321f14..c457530 100755 --- a/update-maintainer +++ b/update-maintainer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2007 (C) Albin Tonnerre (Lutin) # @@ -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