File: make_release.sh

package info (click to toggle)
libecpint 1.0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,992 kB
  • sloc: xml: 31,587; cpp: 8,188; ansic: 922; python: 145; sh: 43; makefile: 15
file content (19 lines) | stat: -rwxr-xr-x 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e


die () {
  echo -e "$*"
  exit 1
}

[[ $1 ]] || die "Usage: ${0} <version>"
[[ $1 = 1.[0-9].[0-9] ]] || die "Version has the wrong format"

cd "$(git rev-parse --show-toplevel)"
sed -i "s/VERSION 1.[0-9].[0-9]/VERSION $1/" CMakeLists.txt
sed -i "/PROJECT_NUMBER         =/s/=.*/= $1/" doc/doxygen/Doxyfile
sed -i "1s/Libecpint.*/Libecpint $1/" README.md

git add -u
git commit -m "Bump version to $1"
git tag v"$1"