]> git.llucax.com Git - software/mutt-debian.git/blob - debian/update-autotools.sh
a better way of closing 603186 (sidebar-{sorted,dotted} documentation)
[software/mutt-debian.git] / debian / update-autotools.sh
1 #! /bin/sh
2
3 set -e
4
5 dh_testdir
6
7 D=$(basename "$PWD")
8 PATCH_NAME=misc/autotools-update.diff 
9
10 debclean
11 quilt delete $PATCH_NAME || test $? -eq 1
12 quilt push -aq
13 ln -sf /usr/share/misc/config.sub .
14 ln -sf /usr/share/misc/config.guess .
15
16 cd ..
17 cp -al $D $D.orig
18
19 cd $D 
20 aclocal -I m4
21 autoheader
22 ( cd m4 && make -f Makefile.am.in )
23 automake
24 autoconf
25 cd ..
26
27 T=`mktemp $D/diff.XXXXXX`
28 diff -ru $D.orig $D >$T || test $? -eq 1
29 patch -p1 -R -d $D <$T
30
31 cd $D
32 quilt import -f -P $PATCH_NAME `basename $T`
33 quilt push
34 quilt refresh -p0
35 cd ..
36
37 rm -f $T
38 rm -rf $D.orig