X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=win32%2Finstall.cmd;h=b06cb9ffc93da152918df223e8768db1d7535aae;hb=69c991e03a0eb1b284e6d0c41623d340a8e26d16;hp=dcfa1d021a12fda69dbf0ef33034dcf60bdd4cb3;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/win32/install.cmd b/win32/install.cmd index dcfa1d021..b06cb9ffc 100644 --- a/win32/install.cmd +++ b/win32/install.cmd @@ -1,29 +1,30 @@ -@echo off -rem -rem Simple Header install script for libfirm and friens, uses NT command shell -rem syntax -rem -rem (C) 2005 Universitaet Karlsruhe -rem -rem Michael Beck beck@ipd.info.uni-karlsruhe.de -rem -rem - -set SRC=%1 -set DST=%2 - -if "%1" == "" goto usage -if "%2" == "" goto usage - -echo Installing Header files to %DST% ... - -if not exist %DST% mkdir %DST% -for /F "eol=# tokens=1,2" %%i in (header.list) do if not exist "%DST%\%%j" mkdir %DST%\%%j -for /F "eol=# tokens=1,2" %%i in (header.list) do echo %%i && copy /Y %SRC%\%%i %DST%\%%j >NUL -echo done. - -goto end - -:usage -echo Usage: %0 SRC-DIR DST-DIR -:end +@echo off +rem +rem Simple Header install script for libfirm and friens, uses NT command shell +rem syntax +rem +rem (C) 2005 Universitaet Karlsruhe +rem +rem Michael Beck beck@ipd.info.uni-karlsruhe.de +rem +rem + +set SRC=%1 +set DST=%2 +set CP=xcopy /D/Y/Q + +if "%1" == "" goto usage +if "%2" == "" goto usage + +echo Installing Header files to %DST% ... + +if not exist %DST% mkdir %DST% +for /F "eol=# tokens=1,2" %%i in (header.list) do if not exist "%DST%\%%j" mkdir %DST%\%%j +for /F "eol=# tokens=1,2" %%i in (header.list) do %CP% %SRC%\%%i %DST%\%%j >NUL +echo done. + +goto end + +:usage +echo Usage: %0 SRC-DIR DST-DIR +:end