~ubuntu-core-dev/synaptic/ubuntu

1
2
3
4
5
6
7
8
9
#!/bin/sh

autoreconf -i

DEBVER=$(dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
CONFVER=$(sed -n -e 's/AM_INIT_AUTOMAKE(synaptic, \(.*\))/\1/p' configure.in)
if [ "$DEBVER" != "$CONFVER" ]; then
	sed -i -e "s/$CONFVER/$DEBVER/" configure.in
fi