annotate scripts/ScriptWrapper.bat @ 5:0afb2c0a6477

Add help info on statuslines.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 22 Jan 2021 16:52:30 -0800
parents 9235d8341a18
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 @echo off
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 rem ## A simple batch file for running other scripts sequentially.
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 rem ## The parameter should be a response file with one command line on
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5 rem ## each line.
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
6
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
7 setlocal
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
8
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
9 set RESPONSEFILE=%1
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
10 set DEBUG=%2
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
11
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
12 for /f "delims=" %%I in (%RESPONSEFILE%) do (
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
13
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
14 if "%DEBUG%" == "1" (
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
15 echo Running script: %%I
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
16 ) else (
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
17 %%I
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18 )
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
19 )
9235d8341a18 Refactor the build system invocation commands.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
20