Mercurial > vim-unreal
annotate scripts/ScriptWrapper.bat @ 11:06af9916ba7c default tip
Generate compilation database for clang by default
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Tue, 29 Aug 2023 13:07:20 -0700 |
| parents | 9235d8341a18 |
| children |
| 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 |
