git_sha1_gen.py: fix out-of-date comment
[mesa.git] / bin / git_sha1_gen.py
old mode 100755 (executable)
new mode 100644 (file)
index c624066..7fb5c99
@@ -1,8 +1,5 @@
-#!/usr/bin/env python
-
 """
 Generate the contents of the git_sha1.h file.
-The output of this script goes to stdout.
 """
 
 
@@ -47,6 +44,6 @@ args = parser.parse_args()
 
 git_sha1 = os.environ.get('MESA_GIT_SHA1_OVERRIDE', get_git_sha1())[:10]
 if git_sha1:
-    write_if_different('#define MESA_GIT_SHA1 "git-' + git_sha1 + '"')
+    write_if_different('#define MESA_GIT_SHA1 " (git-' + git_sha1 + ')"')
 else:
-    write_if_different('')
+    write_if_different('#define MESA_GIT_SHA1 ""')