X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/4c13acfc45a942f5f481ce6a3dfcea461da505ad..4988a192dab00d86203bd44995b53284abfa1474:/debian/update-autotools.sh?ds=inline diff --git a/debian/update-autotools.sh b/debian/update-autotools.sh index 4f5fc40..2c0d16d 100644 --- a/debian/update-autotools.sh +++ b/debian/update-autotools.sh @@ -2,23 +2,36 @@ set -e -diff="${1-debian/patches/autotools-update}" -rm -f "$diff" +D="$1" # mutt-1.5.X +PATCH_NAME=misc/autotools-update.diff +cd $D dh_testdir debclean -make -f debian/sys-build.mk source.patch -cd build-tree +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 - -D=`echo *` cp -al $D $D.orig cd $D aclocal -I m4 autoheader -(cd m4 && make -f Makefile.am.in ) +( cd m4 && make -f Makefile.am.in ) automake autoconf cd .. -diff -ru $D.orig $D >"../$diff" +T=`mktemp $D/diff.XXXXXX` +diff -ru $D.orig $D >$T || test $? -eq 1 +patch -p1 -R -d $D <$T + +cd $D +quilt import -f -n $PATCH_NAME `basename $T` +quilt push +cd - + +rm -f $T +rm -rf $D.orig