]> git.llucax.com Git - software/mutt-debian.git/commitdiff
Change update-autotools.sh to be run from the top directory, not one
authorAdeodato Simó <dato@net.com.org.es>
Wed, 16 Aug 2006 13:46:23 +0000 (15:46 +0200)
committerAdeodato Simó <dato@net.com.org.es>
Wed, 16 Aug 2006 13:46:23 +0000 (15:46 +0200)
level up it.

debian/update-autotools.sh

index 0e4903bc63f913465a4886e3092b3f7325382d59..f161b025dc672e31c732606f70fdf66627552cad 100755 (executable)
@@ -2,18 +2,18 @@
 
 set -e
 
-D="$1" # mutt-1.5.X
+dh_testdir
+
+D=$(basename "$PWD")
 PATCH_NAME=misc/autotools-update.diff 
 
-cd $D
-dh_testdir
 debclean
 quilt delete $PATCH_NAME || test $? -eq 1
 quilt push -aq
 ln -sf /usr/share/misc/config.sub .
 ln -sf /usr/share/misc/config.guess .
-cd -
 
+cd ..
 cp -al $D $D.orig
 
 cd $D 
@@ -32,7 +32,7 @@ cd $D
 quilt import -f -P $PATCH_NAME `basename $T`
 quilt push
 quilt refresh -p0
-cd -
+cd ..
 
 rm -f $T
 rm -rf $D.orig