From a3904dadb0cc18cbba8e6d10edb47f7077b4f3f9 Mon Sep 17 00:00:00 2001 From: Masaru Tsuchiyama Date: Fri, 3 Aug 2018 06:44:10 +0900 Subject: [PATCH] =?UTF-8?q?=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0=20SKIP=5FC?= =?UTF-8?q?REATE=5FGITHASH=20=E3=81=8C=201=20=E3=81=AB=E3=82=BB=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=A6=E3=80=81?= =?UTF-8?q?=20githash.h=20=E3=81=8C=E5=AD=98=E5=9C=A8=E3=81=97=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=82=89=20githas?= =?UTF-8?q?h.h=20=E3=81=AE=E7=94=9F=E6=88=90=E3=82=92=E3=82=B9=E3=82=AD?= =?UTF-8?q?=E3=83=83=E3=83=97=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura/githash.bat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sakura/githash.bat b/sakura/githash.bat index 1bd224ffa0..dd4c40f4d7 100644 --- a/sakura/githash.bat +++ b/sakura/githash.bat @@ -88,6 +88,20 @@ if "%APPVEYOR_BUILD_URL_VALID%" == "1" ( set GITHASH_H=%OUT_DIR%\githash.h set GITHASH_H_TMP=%GITHASH_H%.tmp +@rem check if skip creation of %GITHASH_H% +set VALID_CREATE_GITHASH=1 +if "%SKIP_CREATE_GITHASH%" == "1" ( + set VALID_CREATE_GITHASH=0 +) +if not exist "%GITHASH_H%" ( + set VALID_CREATE_GITHASH=1 +) + +if "%VALID_CREATE_GITHASH%" == "0" ( + @echo skip creation of %GITHASH_H% + exit /b 0 +) + call :output_githash > %GITHASH_H_TMP% fc %GITHASH_H% %GITHASH_H_TMP% 1>nul 2>&1