Blame iis/dependencies/build_ssdeep.bat
|
Packit Service |
384592 |
cd "%WORK_DIR%"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
@if NOT EXIST "%SOURCE_DIR%\%SSDEEP%" goto build_failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
@7z.exe x "%SOURCE_DIR%\%SSDEEP_BIN%"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
@7z.exe x "%SOURCE_DIR%\%SSDEEP%" -so | 7z.exe x -aoa -si -ttar
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
set SSDEEP_DIR=%SSDEEP_BIN:~0,-4%
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
move "%SSDEEP_DIR%" "ssdeep"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
cd "%WORK_DIR%\ssdeep\"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
@set SSDEEP_ARCH="x86"
|
|
Packit Service |
384592 |
@call cl 2>&1 | findstr /C:"x64"
|
|
Packit Service |
384592 |
@if (%ERRORLEVEL%) == (0) set SSDEEP_ARCH="x64"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
lib /machine:%SSDEEP_ARCH% /def:fuzzy.def
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
copy /y "%WORK_DIR%\ssdeep\fuzzy.dll" "%OUTPUT_DIR%"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
copy /y "%WORK_DIR%\ssdeep\fuzzy.def" "%OUTPUT_DIR%"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
copy /y "%WORK_DIR%\ssdeep\fuzzy.lib" "%OUTPUT_DIR%"
|
|
Packit Service |
384592 |
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
@exit /B 0
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
:build_failed
|
|
Packit Service |
384592 |
@echo Problems during the building phase
|
|
Packit Service |
384592 |
@goto failed
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
:failed
|
|
Packit Service |
384592 |
@exit /B 1
|