home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
BUILD.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-06-09
|
2KB
|
55 lines
@ECHO OFF
CLS
ECHO ┌─────────────────────────────────────────────────────────────────────────────┐
ECHO │ FiveWin 1.6c - June 94 Construyendo un EXE para Clipper en Windows │
ECHO │ Building an EXE for Clipper in Windows │
ECHO │ (c) A.Linares y F.Pulpón, 1993-4 │
ECHO └─────────────────────────────────────────────────────────────────────────────┘
ECHO
SET LIB=..\LIB;D:;C:\CLIPPER5\LIB
REM -----------------------------------------------------------------------------
REM Te recomendamos que copies tus librerías a un disco RAM para ganar velocidad
REM Para esto necesitas tener memoria por encima de un mega, y debes instalar
REM RamDrive.sys en tu config.sys.
REM Si no lo tienes, elimina las cuatro líneas que vienen a continuación
REM -----------------------------------------------------------------------------
IF NOT EXIST D: GOTO NO_RAMDISK
IF NOT EXIST D:CLIPPER.LIB COPY C:\COMPILAD\CLIPPER5\LIB\CLIPPER.LIB D:
IF NOT EXIST D:EXTEND.LIB COPY C:\COMPILAD\CLIPPER5\LIB\EXTEND.LIB D:
IF NOT EXIST D:DBFNTX.LIB COPY C:\COMPILAD\CLIPPER5\LIB\DBFNTX.LIB D:
IF NOT EXIST D:TERMINAL.LIB COPY C:\COMPILAD\CLIPPER5\LIB\TERMINAL.LIB D:
:NO_RAMDISK
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Llamando al compilador de Clipper...
c:\clipper5\bin\clipper %1 /n/w/i..\include %2
IF ERRORLEVEL 1 GOTO EXIT
ECHO
ECHO Llamando al enlazador...
BLINKER fi %1 @..\include\fivewin.lnk
rem link /se:700 /NOE %1,,nul, FiveWin WinApi Clipper 501_520, ..\include\FiveWin.def
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * El ejecutable ha sido construido satisfactoriamente *
ECHO
IF EXIST %1.rc c:\borlandc\bin\RC -K %1
GOTO EXIT
:LINKERROR
PAUSE * Han habido errores al enlazar *
GOTO EXIT
:SINTAX
ECHO SINTAXIS: Build [Programa] {-- No especifiques la extensión .PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO Not exist the specified PRG - No existe el fichero PRG especificado
:EXIT