summaryrefslogtreecommitdiffstats
path: root/chrome/tools/build/win/flattened_html_file.bat
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/tools/build/win/flattened_html_file.bat')
-rw-r--r--chrome/tools/build/win/flattened_html_file.bat14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/tools/build/win/flattened_html_file.bat b/chrome/tools/build/win/flattened_html_file.bat
new file mode 100644
index 0000000..310d88d
--- /dev/null
+++ b/chrome/tools/build/win/flattened_html_file.bat
@@ -0,0 +1,14 @@
+:: Batch file run as build command for flattening files
+:: The custom build rule is set to expect (inputfile).html
+@echo off
+
+setlocal
+
+set InFile=%~1
+set SolutionDir=%~2
+set OutFile=%~3
+
+:: Use GNU tools
+call %SolutionDir%\..\third_party\gnu\setup_env.bat
+
+%SolutionDir%\..\third_party\python_24\python.exe %SolutionDir%\tools\build\win\html_inline.py %InFile% %OutFile%