From 33debcd5659bc20e3e14a4e4c9605f8ac1e72874 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Fri, 6 Jan 2012 13:25:08 +0100 Subject: [PATCH] sandbox/update-version: Simplify logic in updating version while still using UTC time. Conflicts: sandbox/update-version src/version.py --- sandbox/update-version | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sandbox/update-version b/sandbox/update-version index 191b16212..18878ec85 100755 --- a/sandbox/update-version +++ b/sandbox/update-version @@ -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: