blob: 015d1f22408ec1629ec0bd82350add2cfa64d0fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
@echo off
rem helper script for FileInformation CMake module
setlocal enabledelayedexpansion
set "INPUT_OPTION=%~1"
if "!INPUT_OPTION!" == "--size" (
echo %~z2
) else if "!INPUT_OPTION!" == "--timestamp" (
rem do not use %~t2, its format depends on regional settings
rem use Visual Basic to obtain ISO 8601 formatted time stamp
cscript //Nologo "%~dpn0.vbs" "%~1" "%~f2"
) else if "!INPUT_OPTION!" == "--current_timestamp" (
rem do not use %DATE% and %TIME%, their format depends on regional settings
rem use Visual Basic to obtain ISO 8601 formatted time stamp
cscript //Nologo "%~dpn0.vbs" "%~1"
) else (
exit 1
)
|