#!/bin/bash
-oldver='1\.5\.1'
+oldver='1\.7\.2'
oldmonth=October
-oldyear=2013
+oldyear=2014
newmajor=1
-newminor=5
-newpatch=2
+newminor=7
+newpatch=3
newmonth=November
-newyear=2013
+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