1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/oo2c/files/oo2
Will Andrews 42563e8477 Add oo2c, an Oberon-2 compiler.
PR:		18215
Submitted by:	Oliver Breuninger <ob@seicom.net>
2000-06-30 02:56:21 +00:00

47 lines
755 B
Tcsh

#! /bin/csh
if ( $#argv == 0 ) goto usage
if ( $1 == "--make" ) goto make
if ( $1 == "-m" ) goto make
compile:
#
# compile files, check extension
#
if ( $1 == "-c" ) then
set file = $2
else
set file = $1
endif
echo Extension $file:e
if ( $file:e != "Mod" ) then
set file = $file".Mod"
endif
echo compiling $file "..."
oo2c $file | ooef | more
goto end
make:
#
# make Oberon program, remove Extension
#
echo making $2:r $3:r $4:r $5:r $6:r "..."
oo2c --make $2:r $3:r $4:r $5:r $6:r
goto end
usage:
#
# show a litle help
#
echo ""
echo " oo2 [option] File "
echo ""
echo " option: "
echo " --make make Project "
echo " -m make Project "
echo " -c (default) compile Module "
echo ""
end: