-VERSION=$1
-OFS="$IFS"
-IFS=:
-HOSTNAME=unknown
-
-# Find out the name of the host we are compiling on
-for prog in uname hostname
-do
- for dir in $PATH
- do
- if [ ! -f $dir/$prog ]; then
- continue
- fi
- case $prog in
- uname) HOSTNAME=`$prog -n`
- ;;
- hostname) HOSTNAME=`$prog`
- ;;
- esac
- break
- done
- if [ X"$HOSTNAME" != X -a X"$HOSTNAME" != Xunknown ]; then
- break
- fi
-done
-
-IFS=" "
+version=${1?}
+host=`uname -n`
+if test -d "$srcdir/.git"; then
+ git=" `git -C $srcdir describe --long --dirty`"
+else
+ git=
+fi
+date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"