sandbox/update-version: Simplify logic in updating version while still using UTC time.

Conflicts:

	sandbox/update-version
	src/version.py
This commit is contained in:
nyuszika7h 2012-01-06 13:25:08 +01:00 committed by Valentin Lorentz
parent 2c4adf123c
commit 33debcd565

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
echo "Updating version..."
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( TZ="/usr/share/zoneinfo/UTC" date -Iseconds ))'/" src/version.py
git add src/version.py
# vim: set ft=sh: syntax:
echo -n "Updating version... "
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -u -Iseconds ))'/" src/version.py
git add src/version.py && echo "done"
# vim: set ft=sh: