blob: 2940dcb82846746320c013f089d543056473e16b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -e
if [ $# -ne 3 ]; then
echo "Usage: $0 <major> <minor> <patchlevel>"
exit 1
fi
vers="$1.$2.$3"
echo $vers > VERSION
sed -i "s/\(@set VERSION \).*/\1$vers/" mpfr.texi
sed -i "s/\(#define MPFR_VERSION_MAJOR \).*/\1$1/; \
s/\(#define MPFR_VERSION_MINOR \).*/\1$2/; \
s/\(#define MPFR_VERSION_PATCHLEVEL \).*/\1$3/" mpfr.h
sed -i "s/\(return \"\).*\"/\1$vers\"/" version.c
sed -i "s/\(AC_INIT(MPFR, \).*)/\1$vers)/" configure.in
|