home *** CD-ROM | disk | FTP | other *** search
- .key source/a,dest/a
- .bra {
- .ket }
-
- FailAt 21
-
- P2C {source} -a -o t:P2Ctmpfile.c
-
- IF ERROR
-
- QUIT 20
-
- ENDIF
-
- ;insert the compiler options you want
- gcc -O2 t:P2Ctmpfile.c -lp2c -o {dest}
-
- IF ERROR
- delete >NIL: t:P2Ctmpfile.c
- echo "Fatal error: could not compile."
- QUIT 20
- ENDIF
-
- delete >NIL: t:P2Ctmpfile.c
-