about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2011-10-04 10:36:13 -0500
committerTodd T. Fries <todd@fries.net>2011-10-04 10:36:13 -0500
commit6e5a84d74b23648c08faa925803a6210522ca82c (patch)
tree9ba25ea753832a41b797f363a09c6a408fa13048
parent6daaad9b216cad2d262e8a4e7e5a08501236f34e (diff)
downloadxombrero-6e5a84d74b23648c08faa925803a6210522ca82c.tar.gz
let obj/ dirs work too
-rwxr-xr-xbuildver.sh5
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