trying to get HEAD building again. If you want the code
[gd/samba-autobuild/.git] / packaging / Debian / debian / scripts / patch-source
1 #!/bin/sh -e
2 #
3 #
4
5 for patch in debian/patches/*.patch; do
6         echo '->'`basename $patch`:
7         patch -p1 < $patch
8 done
9
10 cat debian/changelog | perl -pi -e '($version) = <STDIN> =~/\((.*)\)/; \
11                 s/\".*\"/\"$version 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 && sh ./autogen.sh)
15
16 exit 0