home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
lan
/
pctcp.arj
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-07-11
|
3KB
|
93 lines
echo off
if x%1 == x goto die
if %1 == boofiles goto unboo
if %1 == tarfiles goto untar
if %1 == 3d goto ok
if %1 == 3n goto ok
if %1 == 4d goto ok
if %1 == 4n goto ok
goto die
:unboo
echo Making unboo
cl unboo.c
echo Putting boo files together
copy /b/v srclib1.boo+srclib2.boo+srclib3.boo+srclib4.boo srclib.boo
copy /b/v srccmd1.boo+srccmd2.boo+srccmd3.boo srccmd.boo
copy /b/v doc1.boo+doc2.boo+doc3.boo+doc4.boo+doc5.boo+doc6.boo doc.boo
echo Making tar files from boo files
unboo tarread.boo
unboo root.boo
unboo include.boo
unboo srcdev.boo
unboo srclib.boo
unboo srccmd.boo
unboo doc.boo
:untar
echo Installing files from tar files
mkdir lib
mkdir obj.3d
mkdir obj.3n
mkdir obj.4d
mkdir obj.4n
tarread xv include.tar
tarread xv srclib.tar
tarread xv srccmd.tar
tarread xv srcdev.tar
tarread xv root.tar
goto end
:ok
if not exist srclib\makefils\3com.%1 goto die
echo Installing %1 makefiles
copy srcdev\makefils\NETDEV.%1 srcdev\NETDEV\makefile
copy srclib\makefils\3COM.%1 srclib\3COM\makefile
copy srclib\makefils\DOMAIN.%1 srclib\DOMAIN\makefile
copy srclib\makefils\EM.%1 srclib\EM\makefile
copy srclib\makefils\INTERLAN.%1 srclib\INTERLAN\makefile
copy srclib\makefils\INTERNET.%1 srclib\INTERNET\makefile
copy srclib\makefils\NET.%1 srclib\NET\makefile
copy srclib\makefils\PC.%1 srclib\PC\makefile
copy srclib\makefils\PRONET.%1 srclib\PRONET\makefile
copy srclib\makefils\SERIAL.%1 srclib\SERIAL\makefile
copy srclib\makefils\SLIP.%1 srclib\SLIP\makefile
copy srclib\makefils\TANGENT.%1 srclib\TANGENT\makefile
copy srclib\makefils\TASK.%1 srclib\TASK\makefile
copy srclib\makefils\TCP.%1 srclib\TCP\makefile
copy srclib\makefils\TFTP.%1 srclib\TFTP\makefile
copy srclib\makefils\UDP.%1 srclib\UDP\makefile
copy srccmd\makefils\BOOTP.%1 srccmd\BOOTP\makefile
copy srccmd\makefils\COOKIE.%1 srccmd\COOKIE\makefile
copy srccmd\makefils\CUSTOM.%1 srccmd\CUSTOM\makefile
copy srccmd\makefils\HADDR.%1 srccmd\HADDR\makefile
copy srccmd\makefils\HOSTNAME.%1 srccmd\HOSTNAME\makefile
copy srccmd\makefils\IPRINT.%1 srccmd\IPRINT\makefile
copy srccmd\makefils\LPR.%1 srccmd\LPR\makefile
copy srccmd\makefils\MONITOR.%1 srccmd\MONITOR\makefile
copy srccmd\makefils\NETNAME.%1 srccmd\NETNAME\makefile
copy srccmd\makefils\NETWATCH.%1 srccmd\NETWATCH\makefile
copy srccmd\makefils\NICNAME.%1 srccmd\NICNAME\makefile
copy srccmd\makefils\ONHOOK.%1 srccmd\ONHOOK\makefile
copy srccmd\makefils\PING.%1 srccmd\PING\makefile
copy srccmd\makefils\SETCLOCK.%1 srccmd\SETCLOCK\makefile
copy srccmd\makefils\TERM.%1 srccmd\TERM\makefile
copy srccmd\makefils\TFTP.%1 srccmd\TFTP\makefile
copy srccmd\makefils\TN.%1 srccmd\TN\makefile
copy srccmd\makefils\WHOIS.%1 srccmd\WHOIS\makefile
copy srccmd\makefils\SMTP.%1 srccmd\SMTP\makefile
copy srccmd\makefils\POP2.%1 srccmd\POP2\makefile
goto end
:die
echo No such option "%1"
echo Usage: "install [tarfiles | 3d | 3n | 4d | 4n]"
:end