home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK5
/
DOS_38
/
VT12B.ZIP
/
VTSRC.ZIP
/
MAKE.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-10
|
4KB
|
187 lines
@echo off
rem ---------------------------------------------------------------------------
rem
rem Intérprete de la llamada a función.
rem
rem ---------------------------------------------------------------------------
if %1==-? goto Usage
if %1==/? goto Usage
if %1==-h goto Usage
if %1==/h goto Usage
if %1==-H goto Usage
if %1==/H goto Usage
if %1==vt goto MakeVT
if %1==VT goto MakeVT
if %1==run goto MakeRun
if %1==RUN goto MakeRun
if %1==exe goto MakeExe
if %1==EXE goto MakeExe
if %1==src goto MakeSrc
if %1==SRC goto MakeSrc
if %1==all goto MakeAll
if %1==ALL goto MakeAll
if %1==pke goto PackExe
if %1==PKE goto PackExe
if %1==pks goto PackSrc
if %1==PKS goto PackSrc
if .%1==. goto NoOption
goto %1
rem ---------------------------------------------------------------------------
rem
rem Funciones de compilación.
rem
rem ---------------------------------------------------------------------------
:MakeVT
cd FONT
call make
cd ..
call tpc MAKESTR
tdstrip MAKESTR
lzexe MAKESTR
del MAKESTR.OLD
MakeStr
call tpc VT
tdstrip VT
lzexe VT
del VT.OLD
call tpc ShellVT
tdstrip ShellVT
lzexe ShellVT
del SHELLVT.OLD
call tpc OS2VT
tdstrip OS2VT
lzexe OS2VT
del OS2VT.OLD
goto Fin
:MakeRun
call make VT
copy VT.EXE \MODP > NUL
copy VT_ESP.LNG \MODP > NUL
copy VT_ENG.LNG \MODP > NUL
copy ShellVT.EXE \MODP > NUL
copy OS2VT.EXE \MODP > NUL
goto Fin
rem ---------------------------------------------------------------------------
rem
rem Funciones de creación de nuevas versiones.
rem
rem ---------------------------------------------------------------------------
:MakeDocs
cd DOC
call make
cd ..
doc\makedoc VT_HIS.TXT VT.HIS
doc\makedoc VT_H_ENG.TXT VT_ENG.HIS
doc\makedoc COMPATIB.TXT COMPATIB.LST
goto Fin
:MakeExe
if %2.==. goto NeedVersion
if exist VERSIONS\VTEXE%2.ARJ goto AlreadyExists
call make MakeDocs
call make RUN
call make PackExe %2
goto Fin
:MakeSrc
if %2.==. goto NeedVersion
if exist VERSIONS\VTSRC%2.ARJ goto AlreadyExists
call make MakeDocs
call make RUN
call make PackSrc %2
goto Fin
:MakeAll
if %2.==. goto NeedVersion
if exist VERSIONS\VTSRC%2.ARJ goto OneExists
:OnlyOneExists
call make MakeDocs
call make RUN
call make PackExe %2
call make PackSrc %2
goto Fin
rem ---------------------------------------------------------------------------
rem
rem Funciones de empaquetado de los fuentes y los ejecutables.
rem
rem ---------------------------------------------------------------------------
:PackSrc
md VERSIONS > NUL
if exist VERSIONS\VTSRC%2.ARJ goto Fin
arj a -zBANNER.TXT VERSIONS\VTSRC%2.ARJ !VTSRC.LST
goto Fin
:PackExe
md VERSIONS > NUL
if exist VERSIONS\VTEXE%2.ARJ goto Fin
arj a -zBANNER.TXT VERSIONS\VTEXE%2.ARJ !VTEXE.LST
goto Fin
rem ---------------------------------------------------------------------------
rem
rem Funciones de utilidad.
rem
rem ---------------------------------------------------------------------------
:Usage
echo " MAKE { VT | RUN | EXE | SRC | ALL } [<versión>]"
goto Fin
:OneExists
if exist VERSIONS\VTEXE%2.ARJ goto AlreadyExists
goto OnlyOneExists
:NeedVersion
echo Necesito un número de versión.
goto Usage
:AlreadyExists
echo Esa versión ya existe: %2
goto Fin
:NoOption
echo "Tienes que especificarme una opción válida."
echo.
goto Usage
:Fin