File: bump_version.sh

package info (click to toggle)
python-odoorpc 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 560 kB
  • sloc: python: 2,894; makefile: 154; sh: 4
file content (9 lines) | stat: -rwxr-xr-x 278 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Update the version and commit:
#
#   $ ./bump_version.sh X.Y.Z
#
HERE=$(dirname $(readlink -m $0))
sed -i "s/^__version__.*/__version__ = '$1'/" $HERE/odoorpc/__init__.py
sed -i "s/^version =.*/version = '$1'/" $HERE/setup.py
git ci -a -m "[IMP] Bump version to $1"