2012-01-05 14:37:36 +01:00
|
|
|
#!/usr/bin/env bash
|
2012-01-05 14:44:14 +01:00
|
|
|
export TZ="/usr/share/zoneinfo/UTC" # Use UTC with version timestamps.
|
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 14:44:14 +01:00
|
|
|
unset TZ # Return to the system timezone.
|
2012-01-05 15:10:28 +01: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 17:54:55 +01:00
|
|
|
# vim: set ft=sh: syntax:
|