2012-01-05 15:37:36 +02:00
|
|
|
#!/usr/bin/env bash
|
2012-01-05 20:03:03 +02:00
|
|
|
export TZ="/usr/share/zoneinfo/UTC" # Set timezone as UTC for version timestamps to be in UTC.
|
2011-04-26 10:32:49 +02:00
|
|
|
echo "Updating version..."
|
|
|
|
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -Iseconds ))'/" src/version.py
|
2012-01-05 15:44:14 +02:00
|
|
|
unset TZ # Return to the system timezone.
|
2012-01-05 16:10:28 +02:00
|
|
|
exec $SHELL # Execute the current shell to return to user timezone if specified in config of shell.
|
2011-04-26 10:32:49 +02:00
|
|
|
git add src/version.py
|
2012-01-05 18:54:55 +02:00
|
|
|
# vim: set ft=sh: syntax:
|