diff --git a/tools/build-all.sh b/tools/build-all.sh
index 733b9e4559d9e6237d1992b80c1f9e7464550adf..6410582a87a75f44024d593268bad050ec6b81a0 100755
--- a/tools/build-all.sh
+++ b/tools/build-all.sh
@@ -34,6 +34,8 @@ usage ()
 }
 
 VERSION="`date '+%Y-%m-%d %H:%M:%S'`"
+GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
+VERSION="`date '+%Y-%m-%d %H:%M:%S'` $GIT_HASH"
 BASE=build
 CREATE_OPT=""