Skip to content

Commit

Permalink
fixed the script so that it fails when a copy fails
Browse files Browse the repository at this point in the history
and also: fix the list of files, as `zdict.h` was incorrectly set.
  • Loading branch information
Cyan4973 committed Feb 28, 2025
1 parent 7340657 commit 4e1723a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/dll/example/build_package.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ call :copyFile "lib\dll\example\fullbench-dll.*" "bin\example\"
call :copyFile "lib\dll\example\README.md" "bin\"
call :copyFile "lib\zstd.h" "bin\include\"
call :copyFile "lib\zstd_errors.h" "bin\include\"
call :copyFile "lib\dictBuilder\zdict.h" "bin\include\"
call :copyFile "lib\zdict.h" "bin\include\"
call :copyFile "programs\zstd.exe" "bin\zstd.exe"

endlocal
exit /b
exit /b 0

:copyFile
copy "%~1" "%~2" || (echo Failure processing "%~1" & exit /b %errorlevel%)
goto :eof
copy "%~1" "%~2"
if errorlevel 1 (
echo Failed to copy "%~1"
exit 1
)
exit /b

0 comments on commit 4e1723a

Please sign in to comment.