File: pre-build.sh

package info (click to toggle)
synaptic 0.81.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 20,184 kB
  • ctags: 2,538
  • sloc: cpp: 24,326; xml: 7,938; ansic: 2,084; makefile: 578; sh: 438; sed: 93; python: 82
file content (9 lines) | stat: -rwxr-xr-x 247 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/bin/sh

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