compress_parallel.c: Determine physical memory on OS X
[wimlib] / update-version
1 #!/bin/bash
2
3 oldver='1\.6\.0'
4 oldmonth=January
5 oldyear=2013
6
7 newmajor=1
8 newminor=6
9 newpatch=1
10 newmonth=January
11 newyear=2014
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           include/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 <ebiggers3@gmail.com>  $(date -R)\\
36 " debian/changelog
37
38 sed -i 's/\(Version:[[:space:]]*\)[^[:space:]]\+/\1'"$newver"'/' \
39                 rpm/*.spec