File: release.sh

package info (click to toggle)
netproc 0.6.6-0.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 908 kB
  • sloc: ansic: 7,876; makefile: 101; sh: 12
file content (18 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Example:
#   $ ./release 0.1.0

make_release()
{
  sed -i "s/PROG_VERSION[ \t]\+\"\(.\+\)\"/PROG_VERSION \"$1\"/" src/config.h
  git add src/config.h
  git commit -m "set version $1"
  git tag -s $1 -m "version $1"
}

if [ -z "$1" ]; then
  exit 1
fi

make_release $1