You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
555 B
34 lines
555 B
@echo off
|
|
setlocal ENABLEDELAYEDEXPANSION
|
|
set mergeroot=
|
|
set args=
|
|
set opts=
|
|
|
|
:NextArg
|
|
|
|
if "%1"=="" goto :ArgDone
|
|
|
|
set tmp=%1
|
|
set tmp0=!tmp:~0,1!
|
|
if "!tmp0!"=="-" set opts=!opts! %1 & goto ArgOK
|
|
if "!tmp0!"=="/" set opts=!opts! %1 & goto ArgOK
|
|
|
|
set args=!args! %1
|
|
|
|
:ArgOK
|
|
shift
|
|
goto :NextArg
|
|
|
|
:ArgDone
|
|
set filenames=
|
|
for %%x in (%args%) do (
|
|
set filenames=!filenames! %%x
|
|
)
|
|
|
|
if "%filenames%"=="%1" goto :Usage
|
|
cscript buildtimes.js %opts% %filenames% //nologo
|
|
|
|
goto :Eof
|
|
|
|
:Usage
|
|
cscript buildtimes.js -? //nologo
|