]> git.llucax.com Git - software/mutt-debian.git/blobdiff - debian/update-autotools.sh
Instead of trying to maintain the PATCHES file, put "quilt applied" output there.
[software/mutt-debian.git] / debian / update-autotools.sh
index 0e4903bc63f913465a4886e3092b3f7325382d59..f161b025dc672e31c732606f70fdf66627552cad 100755 (executable)
@@ -2,18 +2,18 @@
 
 set -e
 
 
 set -e
 
-D="$1" # mutt-1.5.X
+dh_testdir
+
+D=$(basename "$PWD")
 PATCH_NAME=misc/autotools-update.diff 
 
 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 .
 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 
 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
 quilt import -f -P $PATCH_NAME `basename $T`
 quilt push
 quilt refresh -p0
-cd -
+cd ..
 
 rm -f $T
 rm -rf $D.orig
 
 rm -f $T
 rm -rf $D.orig