From ec5bb3b213385405105ef90eccb1b1f093004b22 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 5 Aug 2012 02:04:52 +0200 Subject: Use the revision/date for the poezio version if a .git is found --- launch.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'launch.sh') diff --git a/launch.sh b/launch.sh index d3263f79..681e6fcf 100755 --- a/launch.sh +++ b/launch.sh @@ -1,4 +1,12 @@ #!/usr/bin/env sh -exec python3 -OO src/poezio.py "$@" +if [ -d "$PWD/.git" ] +then + args=$(git show --format='%h %ci' | head -n1) +else + args="0.8-dev" +fi + + +exec python3 -OO src/poezio.py -v "$args" "$@" -- cgit v1.2.3