version command: make it scriptable
commit505d4633cd7a4e8623ef70932cd7edc9f22e71d4
authorØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 10 Sep 2010 11:16:13 +0000 (10 13:16 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sat, 11 Sep 2010 09:42:44 +0000 (11 11:42 +0200)
treedba9ab3b67afb313437c7995eb8a18973b4bcde6
parentac86f4ccba49a671034a7607a7e14bc4b5e86ac6
version command: make it scriptable

you can now set a variable in a script like set version [version].

Also version takes an optional argument "git" to show git version
of source. If git is not installed during the build, then this
will yield an error that is ignored during the build and "version git"
returns an empty string.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/Makefile.am
src/openocd.c