Sign in
chromium
/
chromiumos
/
third_party
/
mesa
/
d3e8bdd7b2ee26393812602e81c2e2195f272a2f
/
.
/
bin
/
git_sha1_gen.sh
blob: 898e59075879e00ec42979ce32cd5b14e814f153 [
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"