diff options
author | Todd T. Fries <todd@fries.net> | 2011-10-04 10:36:13 -0500 |
---|---|---|
committer | Todd T. Fries <todd@fries.net> | 2011-10-04 10:36:13 -0500 |
commit | 6e5a84d74b23648c08faa925803a6210522ca82c (patch) | |
tree | 9ba25ea753832a41b797f363a09c6a408fa13048 | |
parent | 6daaad9b216cad2d262e8a4e7e5a08501236f34e (diff) | |
download | xombrero-6e5a84d74b23648c08faa925803a6210522ca82c.tar.gz |
let obj/ dirs work too
-rwxr-xr-x | buildver.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buildver.sh b/buildver.sh index be2517b..879bedc 100755 --- a/buildver.sh +++ b/buildver.sh @@ -1,4 +1,7 @@ #!/bin/sh -if [ -d .git ]; then + +CURDIR=$(dirname $0) +if [ -d $CURDIR/.git ]; then + cd $CURDIR git describe --tags | tr -d '\n' fi |