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

for patch in debian/patches/*.patch; do
	echo '->'`basename $patch`:
	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 && sh ./autogen.sh)

exit 0