2 if test \
( -d .git \
); then
4 if test \
( -x "$git" \
); then
5 version
=`git describe --abbrev=6 --dirty --always`
6 echo "echo $version" > .
/version
8 echo "Error: *** git not found. See http://git-scm.com/"
11 elif test \
( -s .
/version \
); then
12 version
=`sh -c ". ./version"`
14 echo "Error: *** invalid tree. Neither '.git' nor 'version' were found"