6d86081997-12-22Fredrik Hübinette (Hubbe) #!/bin/sh
da5cd91998-11-05Fredrik Hübinette (Hubbe) #This can be 'sprsh' or 'wine' REMOTE_METHOD=sprsh
4469f31999-06-19Fredrik Hübinette (Hubbe) # Choose 'rntcc' for Watcom or 'rntcl' for Microsoft VC++ # (Make sure VC++ is before Watcom in your path!)
7a22d71999-08-27Fredrik Hübinette (Hubbe) CC=${CC-rntcl}
4469f31999-06-19Fredrik Hübinette (Hubbe)  # Edit
7a22d71999-08-27Fredrik Hübinette (Hubbe) NTHOST=${NTHOST-10.0.5.13}
00a1b72000-01-16Fredrik Hübinette (Hubbe) NTDRIVE=${NTDRIVE-k:}
4469f31999-06-19Fredrik Hübinette (Hubbe) 
1e1fb61998-01-16Fredrik Hübinette (Hubbe) # Edit
7a22d71999-08-27Fredrik Hübinette (Hubbe) #NTHOST=10.0.5.10 #NTDRIVE='k:'
dd990d1998-12-31Fredrik Hübinette (Hubbe) 
bcb9961999-04-01Fredrik Hübinette (Hubbe) #NTHOST=localhost #NTDRIVE='d:'
1e1fb61998-01-16Fredrik Hübinette (Hubbe)  # What dir on the UNIX machine is on $NTDRIVE ? # This variable MUST NOT end with a slash. NTMOUNT=
a1ad681998-01-16Fredrik Hübinette (Hubbe) # Use Simple Pike Remote SHell? USE_SPRSH=yes # Port for sprsh NTPORT=4711
da5cd91998-11-05Fredrik Hübinette (Hubbe) #These are only used if you use wine watcom=D:\\CDROM INCLUDE="$watcom\\H;$watcom\\H\\NT"
7a22d71999-08-27Fredrik Hübinette (Hubbe) case "/$CC" in */rntcl) MSVC='j:\winshare\vc98' local='j:\winshare\local' REMOTE_VARIABLES=" path=$MSVC\\bin; include=$MSVC\\Include;$local\\include lib=$MSVC\\Lib;$local\\lib " export REMOTE_VARIABLES ;; */rntcc) watcom='j:\winshare\WATCOM' local='j:\winshare\WATCOM\local' REMOTE_VARIABLES=" path=$watcom\\binnt;$watcom\\binw;
905b5c2000-01-09Fredrik Hübinette (Hubbe) include=$watcom\\h;$watcom\\h\\nt;$local\\h
7a22d71999-08-27Fredrik Hübinette (Hubbe) lib=$watcom\\lib386;$local\\lib " export REMOTE_VARIABLES ;; esac
1e1fb61998-01-16Fredrik Hübinette (Hubbe) # Don't edit
a1ad681998-01-16Fredrik Hübinette (Hubbe) 
bcb9961999-04-01Fredrik Hübinette (Hubbe) case /$0 in */init_nt) # We were executed we can find the path! base=`echo $0 | sed -e 's@/init_nt@@'` base=`(test "x$base" != "x" && cd $base ; /bin/pwd)` ;; *) # We were sourced, we cannot find the path... base=`pwd` ;; esac
a1bb361998-04-16Fredrik Hübinette (Hubbe) 
bcb9961999-04-01Fredrik Hübinette (Hubbe) NT_TOOL_PATH=$base/tools export NT_TOOL_PATH if [ ! -d "$NT_TOOL_PATH" ]; then echo Unable to find NT tools! return exit fi
a1ad681998-01-16Fredrik Hübinette (Hubbe)  case :$PATH: in
bcb9961999-04-01Fredrik Hübinette (Hubbe)  *:$NT_TOOL_PATH:*) ;; *) PATH=$NT_TOOL_PATH:$PATH ;;
a1ad681998-01-16Fredrik Hübinette (Hubbe) esac
bcb9961999-04-01Fredrik Hübinette (Hubbe)  NTTOOLS=$NT_TOOL_PATH/lib
34f8f01998-01-16Fredrik Hübinette (Hubbe) if [ "x$NTMOUNT" = x ]; then MNTREPLACE=""
cdfb8d2000-02-05Marcus Comstedt  PIKE_PATH_TRANSLATE=""
34f8f01998-01-16Fredrik Hübinette (Hubbe) else MNTREPLACE="s@$NTMOUNT@@g "
cdfb8d2000-02-05Marcus Comstedt  PIKE_PATH_TRANSLATE="s!^$NTMOUNT!$NTDRIVE!"
34f8f01998-01-16Fredrik Hübinette (Hubbe) fi
686ed61998-09-01Fredrik Hübinette (Hubbe) IFS=' '
6d86081997-12-22Fredrik Hübinette (Hubbe) 
da5cd91998-11-05Fredrik Hübinette (Hubbe) export NTHOST NTDRIVE NTCC CC PATH NTTOOLS MNTREPLACE MNTREPLACE export NTPORT USE_SPRSH NTMOUNT IFS REMOTE_METHOD watcom INCLUDE
4469f31999-06-19Fredrik Hübinette (Hubbe) export NT_TOOL_PATH NTCOMPILER
6d86081997-12-22Fredrik Hübinette (Hubbe) 
47c4c91998-08-05Fredrik Hübinette (Hubbe) case /$SHELL-$TERM in
95c2361998-07-26Fredrik Hübinette (Hubbe)  */bash-xterm)
00a1b72000-01-16Fredrik Hübinette (Hubbe)  PROMPT_COMMAND="echo -n ]2\; $REMOTE_METHOD NT compile ]1\; $CC"
0f79ff1998-07-31Henrik Grubbström (Grubba)  export PROMPT_COMMAND
95c2361998-07-26Fredrik Hübinette (Hubbe)  ;;
0f79ff1998-07-31Henrik Grubbström (Grubba) esac
47c4c91998-08-05Fredrik Hübinette (Hubbe)  case /$0 in */init_nt)
bcb9961999-04-01Fredrik Hübinette (Hubbe)  case /$SHELL in */bash) exec $SHELL -rcfile $NT_TOOL_PATH/bash-fixup ;; *) exec $SHELL ;; esac
47c4c91998-08-05Fredrik Hübinette (Hubbe)  ;; esac