2 # vim: expandtab sw=4 ts=4 sts=4:
5 echo "Usage: set-version VERSION [SOVERSION]"
11 soversion
=`sed -n 's/set (GAMMU_SOVERSION "\([^"]*\)".*/\1/p' < CMakeLists.txt`
17 sed "s/@GAMMU_VERSION@/$version/; s/@GAMMU_SOVERSION@/$soversion/;" < $1 > $2
20 echo "Setting version to $version (soversion=$soversion)"
23 do_replace cmake
/templates
/gammu.spec.
in gammu.spec
24 do_replace cmake
/templates
/description-pak.
in description-pak
28 s/set (GAMMU_VERSION \"[^\"]*\"\\(.*\\))/set (GAMMU_VERSION \"$version\"\1)/;
29 s/set (GAMMU_SOVERSION \"[^\"]*\"\\(.*\\))/set (GAMMU_SOVERSION \"$soversion\"\1)/;
32 sed -i "s/VERSION = '[0-9.]*'/VERSION = '$version'/" python
/setup.py
35 if ! grep -q " - $version" ChangeLog
; then
36 sed -i -e '/^=========$/ a\
37 ' -e '/^=========$/ a\
38 2011???? - '"$version"'