home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
psform.zip
/
PSFORM.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-04-26
|
1KB
|
47 lines
@ECHO OFF
SET TMPPATH=%PATH%
SET TMPDPATH=%DPATH%
SET TMPHELP=%HELP%
SET TMPBOOKSHELF=%BOOKSHELF%
SET TMPLIB=%LIB%
SET TMPINCLUDE=%INCLUDE%
IF "%1" == "" (
ECHO The name of the programfile is missing!
GOTO FEHLER )
IF "%2" == "" (
ECHO The name of the formfile is missing!
GOTO FEHLER )
IF "%3" == "" (
ECHO The name of the specificationfile is missing!
GOTO FEHLER )
IF NOT EXIST "%2" (
ECHO The formfile doesn' t exist!
GOTO ENDE )
IF NOT EXIST "%3" (
ECHO The specificationfile doesn' t exist!
GOTO ENDE )
GENER.EXE %1 %2 %3
ICC /Fe %1.EXE /B"psf.obj /de" /Ss /Wall /Tx /Fl- /Ls /Le /Ti /Tm %1.C
GOTO ENDE
:FEHLER
ECHO The correct syntax of the commandfile GENALL.CMD is:
ECHO GEN prog psf spe
ECHO prog = name of the C-Program, which will be generated,
ECHO no file-extension has to be specified
ECHO psf = name of the Postscript-File, with extension
ECHO spe = name of the specificationfile, with extension
GOTO ENDE
:ENDE
SET PATH=%TMPPATH%
SET DPATH=%TMPDPATH%
SET HELP=%TMPHELP%
SET BOOKSHELF=%TMPBOOKSHELF%
SET LIB=%TMPLIB%
SET INCLUDE=%TMPINCLUDE%