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 455efb17ad
Support for default timestamp/date for proxy mode (#454)
* proxy: add option to set default timestamp for proxy mode, fixes #452
- set via flag --proxy-default-timestamp or config 'proxy_options.default_timestamp'
- can be iso date or all-digit timestamp
- overridable via accept-datetime header

* docs: update docs for proxy timestamp
- add docs on memento support in proxy mode

* update-version: script can update version only, commit with 'update-version.sh commit'

* indexer post append: remove 'WB_wombat_' from POST query, could have been added in previous versions of pywb!
2019-03-11 16:28:09 -07:00

28 lines
382 B
Bash
Executable File

#!/bin/bash
BASE=2.2
NOW=$(date +%Y%m%d)
VERSION="$BASE.$NOW"
# Update
echo "Updating version to $VERSION"
sed -i='' -E "s/(__version__ = ').*$/\1$VERSION'/" ./pywb/version.py
if [ "$1" != "commit" ]; then
exit 0
fi
TAG=v-$VERSION
echo "Committing Tag $TAG"
git commit -m "version: update to $VERSION" ./pywb/version.py
git push
# Tag
git tag $TAG
git push origin $TAG