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

Unified Diff: third_party/mesa/redirectoutput.py

Issue 16915005: Re-revert "Re-land r207660 - "Upgrading Mesa to 9.0.3.""" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/mesa/mesa_gensrc.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mesa/redirectoutput.py
diff --git a/third_party/mesa/redirectoutput.py b/third_party/mesa/redirectoutput.py
deleted file mode 100644
index 5103403d4c2d037bbd993579fa26759fe083c589..0000000000000000000000000000000000000000
--- a/third_party/mesa/redirectoutput.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import os
-import os.path
-import subprocess
-import sys
-
-if len(sys.argv) < 3:
- print "Usage: %s OUTPUTFILE SCRIPTNAME ARGUMENTS" % sys.argv[0]
- print "Re-execs the python interpreter against SCRIPTNAME with ARGS,"
- print "redirecting output to OUTPUTFILE."
- sys.exit(1)
-
-abs_outputfile = os.path.abspath(sys.argv[1])
-abs_outputdir = os.path.dirname(abs_outputfile)
-
-if not os.path.isdir(abs_outputdir):
- os.makedirs(abs_outputdir)
-
-ret = 0
-
-with open(abs_outputfile, "w") as f:
- ret = subprocess.Popen([sys.executable] + sys.argv[2:], stdout=f).wait()
-
-if ret:
- os.remove(abs_outputfile)
- sys.exit(ret)
« no previous file with comments | « third_party/mesa/mesa_gensrc.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698