+# check for git short hash
+if ! test $revision; then
+ revision=`cd "$1" && git log -1 --pretty=format:%h`
+ test $revision && revision=git-$revision
+fi
+
+# no version number found
+test $revision || revision=UNKNOWN
+
+NEW_REVISION="#define FFMPEG_VERSION \"$revision\""