2 # vim: expandtab sw=4 ts=4 sts=4:
5 echo "Usage: set-version VERSION"
12 sed "s/@VERSION@/$version/;" < $1 > $2
15 echo "Setting version to $version"
18 do_replace admin
/templates
/wammu.spec.
in wammu.spec
19 do_replace admin
/templates
/description-pak.
in description-pak
20 do_replace admin
/templates
/wammu.iss.
in wammu.iss
21 do_replace admin
/templates
/wammu.nsi.
in wammu.nsi
24 sed -i "s/__version__ = '[0-9.]*'/__version__ = '$version'/" Wammu
/__init__.py
27 if ! grep -q "^$version$" ChangeLog
; then
28 sed -i -e '/^two versions can be retrieved from Git.$/ a\
29 ' -e '/^two versions can be retrieved from Git.$/ a\
30 '$version -e '/^two versions can be retrieved from Git.$/ a\
31 ==== (2011-??-??)' -e '/^two versions can be retrieved from Git.$/ a\