c93e6a1c296ea46dd091c17a115d4188e32e7c03
[wimlib] / make-release
1 #!/bin/bash
2
3 oldver='1\.2\.5'
4 oldmonth=February
5 oldyear=2013
6
7 newmajor=1
8 newminor=2
9 newpatch=6
10 newmonth=March
11 newyear=2013
12
13
14 newver="${newmajor}.${newminor}.${newpatch}"
15 pat='This is wimlib version [^[:space:]]\+ ([^[:space:]]\+ [^[:space:]]\+)'
16 sed -i "s/$pat/This is wimlib version $newver ($newmonth $newyear)/" README
17
18 sed -i "s/$oldver/$newver/" configure.ac
19
20 sed -i -e 's/\(#define WIMLIB_MAJOR_VERSION[[:space:]]\+\)[[:digit:]]\+/\1'$newmajor'/' \
21        -e 's/\(#define WIMLIB_MINOR_VERSION[[:space:]]\+\)[[:digit:]]\+/\1'$newminor'/' \
22        -e 's/\(#define WIMLIB_PATCH_VERSION[[:space:]]\+\)[[:digit:]]\+/\1'$newpatch'/' \
23        -e 's/\(the library interface of wimlib \)'$oldver'/\1'$newver'/' \
24           src/wimlib.h
25
26 sed -i -e "1s/$oldmonth $oldyear/$newmonth $newyear/" doc/*.1.in
27
28 sed -i "s/pkgver=$oldver/pkgver=$newver/" archlinux/PKGBUILD
29
30 sed -i "1i\\
31 wimlib ($newver-1) unstable; urgency=low\\
32 \\
33   * Update to v$newver\\
34 \\
35  -- Eric Biggers <ebiggers3gmail.com>  $(date -R)\\
36 " debian/changelog
37
38 sed -i 's/\(Version:[[:space:]]*\)[^[:space:]]\+/\1'"$newver"'/' \
39                 rpm/*.spec
40
41 sed -i 's/WIMLIB_VERSION=[^[:space:]]\+/WIMLIB_VERSION='"$newver"'/' \
42                 programs/mkwinpeimg