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
9 watcom=/dos/fdos/watcom${watcomver}
17 if [ "${watcomver}" == 2 ]; then
18 MACHINE_TYPE=`uname -m`
19 if [ ${MACHINE_TYPE} == 'x86_64' ]; then
29 INCLUDE=$watcom/h:$watcom/h/dos:$watcom/lh:$watcom/h/os2
31 LIB=$watcom/lib286/dos:$watcom/lib386:$watcom/lib386/dos:$watcom/lib286:$ROOT/lib
32 export OS REXX WATCOM ROOT TOOLS INCLUDE LIB WIPFC
34 PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH
35 WD_PATH=$watcom/binl${PEE}
38 export OS ENV REXX WATCOM ROOT TOOLS INCLUDE LIB PATH WD_PATH WIPFC TERM
40 alias wcp="wcl -lr -l=dos -0 "
41 if [ ! -d "$watcom" ]; then
42 echo "INSTALL OPEN WATCOM AND EDIT THIS FILE TO THE CORRESPONDING DIRECTORY!!!!"
45 #if [ ! -d "$watcom/binl64" ]; then
46 # ln -s $watcom/binl64 $watcom/binl
49 #if [ -e "$HOME/setvars.sh" ]; then
52 # [ "${filename:$length:1}" == "2" ] && . ./setvars.sh
53 # else if [ ! -e "setvars.sh" ]; then
54 # wget http://4ch.mooo.com/4/watcom/setvars.sh
55 # chmod +x ~/setvars.sh