File: setversion.sh

package info (click to toggle)
t50 5.8.7c-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: ansic: 5,721; makefile: 111; sh: 27
file content (15 lines) | stat: -rwxr-xr-x 271 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ -z "$1" ]; then
cat <<@@
Usage: $(basename $0) version

Example:
  $ ./$(basename $0) 5.7.3
@@

  exit 1
fi

sed -i "s/PACKAGE_VERSION[ \t]\+\"\(.\+\)\"/PACKAGE_VERSION \"$1\"/" src/include/configuration.h
sed -i "s/^VERSION=\(.\+\)/VERSION=$1/" Makefile