blob: 2de84d883c183a00653d19934c0e01dcb51bcaa7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#! /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:
|