X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=blobdiff_plain;f=simulate-sparky4-watcom-env.sh;h=4b28a4f157fefe97381b3780fdaed0cd360c5e03;hp=4392dcf0d9428611eb0995cf92294797acdf4585;hb=d40ef7f62ff3e5bd49ffec3b06c881cfa8d02bdb;hpb=f5058e8ab35bf031d8fde8817d50c3a011dbb49d diff --git a/simulate-sparky4-watcom-env.sh b/simulate-sparky4-watcom-env.sh index 4392dcf0..4b28a4f1 100644 --- a/simulate-sparky4-watcom-env.sh +++ b/simulate-sparky4-watcom-env.sh @@ -39,7 +39,18 @@ INCLUDE=$watcom/h:$watcom/h/dos:$watcom/lh:$watcom/h/os2 WIPFC=$watcom/wipfc LIB=$watcom/lib286/dos:$watcom/lib386:$watcom/lib386/dos:$watcom/lib286:$ROOT/lib export OS REXX WATCOM ROOT TOOLS INCLUDE LIB WIPFC -. ~/setvars.sh + +if [ -d /usr/src/open-watcom-v2/rel ]; then + # Jon's Linux system + cur=`pwd` + cd $WATCOM/.. || exit 1 + . ./setvars.sh + cd "$cur" || exit 1 +else + # original sparky4 config + . ~/setvars.sh +fi + PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH WD_PATH=$watcom/binl${PEE}