File: pre-build.sh

package info (click to toggle)
synaptic 0.90.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,272 kB
  • sloc: cpp: 23,902; xml: 10,562; ansic: 2,084; makefile: 569; sh: 179; sed: 93; python: 82
file content (11 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

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