chiark / gitweb /
put tg version into a variable at the top
authormartin f. krafft <madduck@debian.org>
Fri, 23 Jan 2009 05:33:29 +0000 (16:33 +1100)
committermartin f. krafft <madduck@debian.org>
Fri, 23 Jan 2009 05:33:29 +0000 (16:33 +1100)
tg.sh

diff --git a/tg.sh b/tg.sh
index 1762f03..b15571e 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -3,6 +3,7 @@
 # (c) Petr Baudis <pasky@suse.cz>  2008
 # GPLv2
 
+TG_VERSION=0.5
 
 ## Auxiliary functions
 
@@ -249,7 +250,7 @@ do_help()
                        sep="|"
                done
 
-               echo "TopGit v0.5 - A different patch queue manager"
+               echo "TopGit v$TG_VERSION - A different patch queue manager"
                echo "Usage: tg [-r REMOTE] ($cmds|help) ..."
        elif [ -r "@cmddir@"/tg-$1 ] ; then
                @cmddir@/tg-$1 -h || :