-#!/usr/bin/env python
-
"""
Generate the contents of the git_sha1.h file.
The output of this script goes to stdout.
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 ""')