summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/scripts/patch-source
blob: ac2140f9939bc1e703bf8538ee82823b87fc560f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
#
# $Id: patch-source,v 1.3 2003/06/01 07:12:51 peloy Exp $
#

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