summaryrefslogtreecommitdiffstats
path: root/packaging/Debian/debian/scripts/patch-source
blob: f514417e5e1ca4a690bfba3bcd6b2dc07da36e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
#
#

for patch in debian/patches/*.patch; do
	patch -p1 < $patch
done

cat debian/changelog | perl -pi -e '($version) = <STDIN> =~/\((.*)\)/; \
		s/\".*\"/\"$version for Debian\"/' source/include/version.h

# Regenerate configure only if it is older than configure.in
[ source/configure -ot source/configure.in ] && (cd source && autoconf)

exit 0