bump_version.sh 368 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

VERSION=$1

# Update version number to python source code (will appear in "About..." dialog)
# see http://stackoverflow.com/questions/7648328/getting-sed-error
7
sed -i "s/.*__version__.*/__version__ = \"${VERSION}\"/" MDANSE/__pkginfo__.py
8 9

# Update the date of the version
10
sed -i "s/.*__date__.*/__date__ = \"`date +"%d-%m-%Y"`\"/" MDANSE/__pkginfo__.py
11