Sign in
fuchsia
/
third_party
/
mesa
/
refs/tags/chadv/cros-mesa-17.1.1-r14-patched
/
.
/
git_sha1_gen.sh
blob: 20ab8df8eae79eb526c69c0ea0ca18f7a5461463 [
file
] [
log
] [
blame
]
#!/bin/sh
# run git from the sources directory
cd
"$(dirname "
$0
")"
# don't print anything if git fails
if
!
git_sha1
=
$
(
git
--
git
-
dir
=.
git rev
-
parse
--
short
=
10
HEAD
2
>/
dev
/
null
)
then
exit
fi
printf
'#define MESA_GIT_SHA1 "git-%s"\n'
"$git_sha1"