trying to get HEAD building again. If you want the code
[abartlet/samba.git/.git] / packaging / Debian / debian / scripts / unpatch-source
1 #!/bin/sh -e
2 #
3 #
4
5 # We want to reverse the patches in the opposite order we applied
6 #       them, hence the 'ls|sort -r'.
7 for patch in `ls debian/patches/*.patch | sort -r`; do
8         patch -p1 -R < $patch
9 done
10
11 perl -pi -e's/-.* for Debian//' source/include/version.h
12
13 # Regenerate configure only if it is older than configure.in
14 [ source/configure -ot source/configure.in ] && (cd source && autoheader && autoconf)
15
16 exit 0