2 rem This batch file installs the distribution files.
3 rem Copyright (c) 2002 Simon Peter <dn.tlp@gmx.net>
5 rem This file is called from MSVC6! Please do not run it manually!
7 if "%1" == "" goto manually
8 if "%2" == "" goto manually
15 rem Read configuration.
16 if not exist config.bat goto noconfig
19 rem Check target directory presence.
20 if not exist "%bindir%" mkdir "%bindir%"
21 if not exist "%includedir%" mkdir "%includedir%"
22 if not exist "%libdir%" mkdir "%libdir%"
24 rem Check for includedir subdirectory.
25 if not "%3" == "" set includedir=%includedir%\%3
26 if not exist "%includedir%" mkdir "%includedir%"
28 rem Install specified file.
29 if exist %2 goto install
30 echo Error installing %2 - file not found!
34 if "%1" == "b" copy %2 "%bindir%" > nul
35 if "%1" == "i" copy %2 "%includedir%" > nul
36 if "%1" == "l" copy %2 "%libdir%" > nul
40 echo This file is called from MSVC6! Please do not run it manually!
44 echo No configuration file found!
45 echo Please refer to the distribution's documentation on how to create one.