Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: third_party/mesa/generate_git_sha1.py

Issue 17005007: Upgrading Mesa to 9.0.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaselined Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/mesa/README.txt ('k') | third_party/mesa/mesa.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import os
2 import os.path
3 import sys
4
5 output = sys.argv[1]
6 parentdir = os.path.abspath(os.path.join(output, os.pardir))
7
8 #The original body of this file is generated by this bash script:
9 #
10 #touch "${DIR}/git_sha1.h.tmp"
11 #if test -d .git; then \
12 # if which git > /dev/null; then \
13 # git log -n 1 --oneline | \
14 # sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
15 # > "${DIR}/git_sha1.h.tmp" ; \
16 # fi \
17 # fi
18 #if ! cmp -s "${DIR}/git_sha1.h.tmp" "${DIR}/git_sha1.h"; then \
19 # mv "${DIR}/git_sha1.h.tmp" "${DIR}/git_sha1.h" ;\
20 # else \
21 # rm "${DIR}/git_sha1.h.tmp" ;\
22 # fi
23 #
24 #However, Chromium shouldn't depend on Bash, and this preprocessor macro isn't
25 #neccessary in the first place
26
27 if not os.path.isdir(parentdir):
28 os.makedirs(parentdir)
29
30 with open(output, "w") as f:
31 pass
OLDNEW
« no previous file with comments | « third_party/mesa/README.txt ('k') | third_party/mesa/mesa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698