Skip to content

Commit 65c0ccc

Browse files
committed
#7926 Do not touch files during packaging
1 parent db10622 commit 65c0ccc

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

builds/install/arch-specific/win32/BuildExecutableInstall.bat

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,6 @@ if "%FB2_SNAPSHOT%"=="1" (
7474
@echo o Checking for unix2dos...
7575
(cmd /c "unix2dos.exe --version 2>&1 > nul" ) || ( call :ERROR Could not locate unix2dos && @goto :EOF )
7676

77-
@for /f "usebackq tokens=*" %%c in (`where /f touch 2^>nul`) do set TOUCH_COMMAND=%%c
78-
if defined TOUCH_COMMAND (
79-
@%TOUCH_COMMAND% --version <nul >nul 2>nul
80-
if not ERRORLEVEL 1 (
81-
@echo o POSIX touch utility found at %TOUCH_COMMAND%
82-
) else ( @set TOUCH_COMMAND= )
83-
)
84-
8577
@for /f "usebackq tokens=*" %%c in (`where /f md5sum 2^>nul`) do set MD5_COMMAND=%%c
8678
if defined MD5_COMMAND (
8779
@echo o POSIX md5sum utility found at %MD5_COMMAND%
@@ -496,34 +488,6 @@ endlocal
496488
@goto :EOF
497489

498490

499-
:TOUCH_ALL
500-
::========
501-
::Set file timestamp to something meaningful.
502-
::While building and testing this feature might be annoying, so we don't do it.
503-
::==========================================================
504-
setlocal
505-
506-
if /I not "%FBBUILD_BUILDTYPE%"=="release" goto :EOF
507-
if not defined TOUCH_COMMAND echo POSIX touch utility not found && exit /b 1
508-
509-
set TIMESTRING=0%FB_MAJOR_VER%:0%FB_MINOR_VER%:0%FB_REV_NO%
510-
511-
:: Perhaps here we should touch directories as well
512-
:: Here and there XXX_COMMAND is "call"-ed in case if it is a batch file
513-
514-
@echo Touching release build files with %TIMESTRING% timestamp
515-
516-
@for /R %FB_OUTPUT_DIR% %%F in ( * ) do (
517-
call %TOUCH_COMMAND% -c -d %TIMESTRING% %%F || exit /b 1
518-
)
519-
520-
endlocal
521-
522-
::End of TOUCH_ALL
523-
::----------------
524-
@goto :EOF
525-
526-
527491
:ISX_PACK
528492
::=======
529493
:: Now let's go and build the installable .exe
@@ -716,13 +680,6 @@ if defined WIX (
716680
@(@call :SET_CRLF ) || (@echo Error calling SET_CRLF && @goto :EOF)
717681
@echo.
718682

719-
::@echo Creating .local files for libraries
720-
::@(@call :TOUCH_LOCAL ) || (@echo Error calling TOUCH_LOCAL & @goto :END)
721-
::@echo.
722-
723-
@(@call :TOUCH_ALL ) || (@echo Error calling TOUCH_ALL && @goto :END)
724-
@echo.
725-
726683
if %FBBUILD_ZIP_PACK% EQU 1 (
727684
@echo Zipping files for zip pack
728685
@(@call :ZIP_PACK ) || (@echo Error calling ZIP_PACK && @goto :END)

0 commit comments

Comments
 (0)