6d8608 | 1997-12-22 | Fredrik Hübinette (Hubbe) | | #!/bin/sh
|
da5cd9 | 1998-11-05 | Fredrik Hübinette (Hubbe) | | #This can be 'sprsh' or 'wine'
REMOTE_METHOD=sprsh
|
4469f3 | 1999-06-19 | Fredrik Hübinette (Hubbe) | | # Choose 'rntcc' for Watcom or 'rntcl' for Microsoft VC++
# (Make sure VC++ is before Watcom in your path!)
|
7a22d7 | 1999-08-27 | Fredrik Hübinette (Hubbe) | | CC=${CC-rntcl}
|
4469f3 | 1999-06-19 | Fredrik Hübinette (Hubbe) | |
# Edit
|
7a22d7 | 1999-08-27 | Fredrik Hübinette (Hubbe) | | NTHOST=${NTHOST-10.0.5.13}
NTDRIVE='k:'
|
4469f3 | 1999-06-19 | Fredrik Hübinette (Hubbe) | |
|
1e1fb6 | 1998-01-16 | Fredrik Hübinette (Hubbe) | | # Edit
|
7a22d7 | 1999-08-27 | Fredrik Hübinette (Hubbe) | | #NTHOST=10.0.5.10
#NTDRIVE='k:'
|
dd990d | 1998-12-31 | Fredrik Hübinette (Hubbe) | |
|
bcb996 | 1999-04-01 | Fredrik Hübinette (Hubbe) | | #NTHOST=localhost
#NTDRIVE='d:'
|
1e1fb6 | 1998-01-16 | Fredrik Hübinette (Hubbe) | |
# What dir on the UNIX machine is on $NTDRIVE ?
# This variable MUST NOT end with a slash.
NTMOUNT=
|
a1ad68 | 1998-01-16 | Fredrik Hübinette (Hubbe) | | # Use Simple Pike Remote SHell?
USE_SPRSH=yes
# Port for sprsh
NTPORT=4711
|
da5cd9 | 1998-11-05 | Fredrik Hübinette (Hubbe) | | #These are only used if you use wine
watcom=D:\\CDROM
INCLUDE="$watcom\\H;$watcom\\H\\NT"
|
7a22d7 | 1999-08-27 | Fredrik 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;
include=$watcom\\h;$local\\h
lib=$watcom\\lib386;$local\\lib
"
export REMOTE_VARIABLES
;;
esac
|
1e1fb6 | 1998-01-16 | Fredrik Hübinette (Hubbe) | | # Don't edit
|
a1ad68 | 1998-01-16 | Fredrik Hübinette (Hubbe) | |
|
bcb996 | 1999-04-01 | Fredrik 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
|
a1bb36 | 1998-04-16 | Fredrik Hübinette (Hubbe) | |
|
bcb996 | 1999-04-01 | Fredrik 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
|
a1ad68 | 1998-01-16 | Fredrik Hübinette (Hubbe) | |
case :$PATH: in
|
bcb996 | 1999-04-01 | Fredrik Hübinette (Hubbe) | | *:$NT_TOOL_PATH:*) ;;
*) PATH=$NT_TOOL_PATH:$PATH ;;
|
a1ad68 | 1998-01-16 | Fredrik Hübinette (Hubbe) | | esac
|
bcb996 | 1999-04-01 | Fredrik Hübinette (Hubbe) | |
NTTOOLS=$NT_TOOL_PATH/lib
|
34f8f0 | 1998-01-16 | Fredrik Hübinette (Hubbe) | | if [ "x$NTMOUNT" = x ]; then
MNTREPLACE=""
else
MNTREPLACE="s@$NTMOUNT@@g
"
fi
|
686ed6 | 1998-09-01 | Fredrik Hübinette (Hubbe) | | IFS='
'
|
6d8608 | 1997-12-22 | Fredrik Hübinette (Hubbe) | |
|
da5cd9 | 1998-11-05 | Fredrik Hübinette (Hubbe) | | export NTHOST NTDRIVE NTCC CC PATH NTTOOLS MNTREPLACE MNTREPLACE
export NTPORT USE_SPRSH NTMOUNT IFS REMOTE_METHOD watcom INCLUDE
|
4469f3 | 1999-06-19 | Fredrik Hübinette (Hubbe) | | export NT_TOOL_PATH NTCOMPILER
|
6d8608 | 1997-12-22 | Fredrik Hübinette (Hubbe) | |
|
47c4c9 | 1998-08-05 | Fredrik Hübinette (Hubbe) | | case /$SHELL-$TERM in
|
95c236 | 1998-07-26 | Fredrik Hübinette (Hubbe) | | */bash-xterm)
|
da5cd9 | 1998-11-05 | Fredrik Hübinette (Hubbe) | | PROMPT_COMMAND="echo -n ]2\; $REMOTE_METHOD NT compile ]1\; rntcc"
|
0f79ff | 1998-07-31 | Henrik Grubbström (Grubba) | | export PROMPT_COMMAND
|
95c236 | 1998-07-26 | Fredrik Hübinette (Hubbe) | | ;;
|
0f79ff | 1998-07-31 | Henrik Grubbström (Grubba) | | esac
|
47c4c9 | 1998-08-05 | Fredrik Hübinette (Hubbe) | |
case /$0 in
*/init_nt)
|
bcb996 | 1999-04-01 | Fredrik Hübinette (Hubbe) | | case /$SHELL in
*/bash)
exec $SHELL -rcfile $NT_TOOL_PATH/bash-fixup
;;
*)
exec $SHELL
;;
esac
|
47c4c9 | 1998-08-05 | Fredrik Hübinette (Hubbe) | | ;;
esac
|