File: vc6inst.bat

package info (click to toggle)
libbinio 1.4%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,264 kB
  • sloc: sh: 8,413; cpp: 937; makefile: 21
file content (48 lines) | stat: -rwxr-xr-x 1,160 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
rem This batch file installs the distribution files.
rem Copyright (c) 2002 Simon Peter <dn.tlp@gmx.net>
rem
rem This file is called from MSVC6! Please do not run it manually!

if "%1" == "" goto manually
if "%2" == "" goto manually

rem Defaults.
set bindir=.
set includedir=.
set libdir=.

rem Read configuration.
if not exist config.bat goto noconfig
call config.bat

rem Check target directory presence.
if not exist "%bindir%" mkdir "%bindir%"
if not exist "%includedir%" mkdir "%includedir%"
if not exist "%libdir%" mkdir "%libdir%"

rem Check for includedir subdirectory.
if not "%3" == "" set includedir=%includedir%\%3
if not exist "%includedir%" mkdir "%includedir%"

rem Install specified file.
if exist %2 goto install
echo Error installing %2 - file not found!
goto end

:install
if "%1" == "b" copy %2 "%bindir%" > nul
if "%1" == "i" copy %2 "%includedir%" > nul
if "%1" == "l" copy %2 "%libdir%" > nul
goto end

:manually
echo This file is called from MSVC6! Please do not run it manually!
goto end

:noconfig
echo No configuration file found!
echo Please refer to the distribution's documentation on how to create one.
goto end

:end