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 if [ -d /usr/src/open-watcom-v2/rel ]; then
46 cd $WATCOM/.. || exit 1
50 # original sparky4 config
54 PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH
55 WD_PATH=$watcom/binl${PEE}
58 export OS ENV REXX WATCOM ROOT TOOLS INCLUDE LIB PATH WD_PATH WIPFC TERM
60 alias wcp="wcl -lr -l=dos -0 "
61 if [ ! -d "$watcom" ]; then
62 echo "INSTALL OPEN WATCOM AND EDIT THIS FILE TO THE CORRESPONDING DIRECTORY!!!!"
65 #if [ ! -d "$watcom/binl64" ]; then
66 # ln -s $watcom/binl64 $watcom/binl
69 #if [ -e "$HOME/setvars.sh" ]; then
72 # [ "${filename:$length:1}" == "2" ] && . ./setvars.sh
73 # else if [ ! -e "setvars.sh" ]; then
74 # wget http://4ch.mooo.com/4/watcom/setvars.sh
75 # chmod +x ~/setvars.sh