File: pre-build.sh

package info (click to toggle)
synaptic 0.84.6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 21,340 kB
  • sloc: cpp: 24,306; xml: 10,562; ansic: 2,084; makefile: 578; sh: 452; 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