1 # Source: http://4ch.mooo.com/4/watcom/wat.sh
2 # with modifications to simulate this environment on Jon's Linux system
4 # Note that nothing in this project appears to use ROOT or REXX variables
6 #echo Open Watcom Build Environment
7 ROOT=/home/sparky4/p/osfree
10 if [ -d /usr/src/open-watcom-v2/rel ]; then
12 watcom=/usr/src/open-watcom-v2/rel
15 # original sparky4 config
16 watcom=/dos/fdos/watcom${watcomver}
26 if [ "${watcomver}" == 2 ]; then
27 MACHINE_TYPE=`uname -m`
28 if [ ${MACHINE_TYPE} == 'x86_64' ]; then
38 INCLUDE=$watcom/h:$watcom/h/dos:$watcom/lh:$watcom/h/os2
40 LIB=$watcom/lib286/dos:$watcom/lib386:$watcom/lib386/dos:$watcom/lib286:$ROOT/lib
41 export OS REXX WATCOM ROOT TOOLS INCLUDE LIB WIPFC
43 PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH
44 WD_PATH=$watcom/binl${PEE}
47 export OS ENV REXX WATCOM ROOT TOOLS INCLUDE LIB PATH WD_PATH WIPFC TERM
49 alias wcp="wcl -lr -l=dos -0 "
50 if [ ! -d "$watcom" ]; then
51 echo "INSTALL OPEN WATCOM AND EDIT THIS FILE TO THE CORRESPONDING DIRECTORY!!!!"
54 #if [ ! -d "$watcom/binl64" ]; then
55 # ln -s $watcom/binl64 $watcom/binl
58 #if [ -e "$HOME/setvars.sh" ]; then
61 # [ "${filename:$length:1}" == "2" ] && . ./setvars.sh
62 # else if [ ! -e "setvars.sh" ]; then
63 # wget http://4ch.mooo.com/4/watcom/setvars.sh
64 # chmod +x ~/setvars.sh