]> 4ch.mooo.com Git - 16.git/blob - 16/adplug/libbinio/src/vc6inst.bat
wwww~
[16.git] / 16 / adplug / libbinio / src / vc6inst.bat
1 @echo off
2 rem This batch file installs the distribution files.
3 rem Copyright (c) 2002 Simon Peter <dn.tlp@gmx.net>
4 rem
5 rem This file is called from MSVC6! Please do not run it manually!
6
7 if "%1" == "" goto manually
8 if "%2" == "" goto manually
9
10 rem Defaults.
11 set bindir=.
12 set includedir=.
13 set libdir=.
14
15 rem Read configuration.
16 if not exist config.bat goto noconfig
17 call config.bat
18
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%"
23
24 rem Check for includedir subdirectory.
25 if not "%3" == "" set includedir=%includedir%\%3
26 if not exist "%includedir%" mkdir "%includedir%"
27
28 rem Install specified file.
29 if exist %2 goto install
30 echo Error installing %2 - file not found!
31 goto end
32
33 :install
34 if "%1" == "b" copy %2 "%bindir%" > nul
35 if "%1" == "i" copy %2 "%includedir%" > nul
36 if "%1" == "l" copy %2 "%libdir%" > nul
37 goto end
38
39 :manually
40 echo This file is called from MSVC6! Please do not run it manually!
41 goto end
42
43 :noconfig
44 echo No configuration file found!
45 echo Please refer to the distribution's documentation on how to create one.
46 goto end
47
48 :end