diff options
author | mathieui <mathieui@mathieui.net> | 2012-08-05 02:04:52 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-08-05 02:04:52 +0200 |
commit | ec5bb3b213385405105ef90eccb1b1f093004b22 (patch) | |
tree | dcb104a783792e4066c55953cfbde68de7ee434c /launch.sh | |
parent | d723cec5ebac28497c14f24707bcc90d7541a0f1 (diff) | |
download | poezio-ec5bb3b213385405105ef90eccb1b1f093004b22.tar.gz poezio-ec5bb3b213385405105ef90eccb1b1f093004b22.tar.bz2 poezio-ec5bb3b213385405105ef90eccb1b1f093004b22.tar.xz poezio-ec5bb3b213385405105ef90eccb1b1f093004b22.zip |
Use the revision/date for the poezio version if a .git is found
Diffstat (limited to 'launch.sh')
-rwxr-xr-x | launch.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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" "$@" |