home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-08-12 | 930 b | 36 lines | [TEXT/MPS ] |
- ## pp compile and link a pacal file. usage: pp <source>
- # © G. Sawitzki, StatLab Heidelberg 1992 <gs@statlab.uni-heidelberg.de>
- ## ofiles and $Load files go to directory ofiles
- #set echo 1
- set exit 0
- set source "{1}"
- if `(evaluate "{source}" =~/(≈)®1.p/ )` == 1
- # ok: source is of form <name>.p
- else
- set ®1 "{source}"
- set source "{source}".p
- end
-
- if `exists -d :ofiles:` == 0
- (newfolder :ofiles: ) > dev:null
- end
-
- echo -n {®1} ' ##' "{source}" compile
- #-k :ofiles:
- pascal "{source}" {poptions} -o :ofiles: || exit 1
- echo -n " & link "
- Link -w -t MPST -c 'MPS ' ∂
- :ofiles:"{source}".o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"ToolLibs.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"ObjLib.o ∂
- "{PLibraries}"PasLib.o ∂
- "{PLibraries}"SANELib.o ∂
- -o {®1} ∂
- && (echo -n ' & go ' ;find \•{®1} \ "{active}";find / /!0 "{active}")
- # set echo 0
- # "{PLibraries}"NagLib.o ∂
- # "{PLibraries}"Nagio.o ∂
-
-