#!/bin/bash
-oldver='1\.5\.2'
-oldmonth=November
-oldyear=2013
+oldver='1\.7\.2'
+oldmonth=October
+oldyear=2014
newmajor=1
-newminor=5
+newminor=7
newpatch=3
-newmonth=December
-newyear=2013
+newmonth=November
+newyear=2014
newver="${newmajor}.${newminor}.${newpatch}"
-e 's/\(the library interface of wimlib \)'$oldver'/\1'$newver'/' \
include/wimlib.h
-sed -i -e "1s/$oldmonth $oldyear/$newmonth $newyear/" doc/*.1.in
+sed -i -e "1s/$oldmonth $oldyear/$newmonth $newyear/;s/wimlib $oldver/wimlib $newver/" \
+ doc/man[1-9]/*.[1-9]
sed -i "s/pkgver=$oldver/pkgver=$newver/" archlinux/PKGBUILD