1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/update-version.sh
Ilya Kreymer 0fb1fa68a8
Versioning: Add script to set up MAJ.MIN.DATE version (#445)
* versioning: new MAJ.MIN.DATE versioning
move version to version.py for easier updates
add update-version.sh for autoupdating version in version.py, pushing new tag with current version
2019-02-25 11:46:37 -08:00

9 lines
194 B
Bash
Executable File

#!/bin/bash
BASE=2.2
NOW=$(date +%Y%m%d)
sed -i='' -E "s/(__version__ = ').*$/\1$BASE.$NOW'/" ./pywb/version.py
git tag v-$BASE.$NOW
git commit ./pywb/version.py
git push origin v-$BASE.$NOW