]> 4ch.mooo.com Git - 16.git/commitdiff
more
authorJonathan Campbell <jonathan@castus.tv>
Fri, 8 Sep 2017 20:15:07 +0000 (13:15 -0700)
committerJonathan Campbell <jonathan@castus.tv>
Fri, 8 Sep 2017 20:15:07 +0000 (13:15 -0700)
simulate-sparky4-watcom-env.sh

index 4392dcf0d9428611eb0995cf92294797acdf4585..4b28a4f157fefe97381b3780fdaed0cd360c5e03 100644 (file)
@@ -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}