1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
#!/bin/sh 
 
#This can be 'sprsh' or 'wine' 
REMOTE_METHOD=sprsh 
 
# Choose 'rntcc' for Watcom or 'rntcl' for Microsoft VC++ 
# (Make sure VC++ is before Watcom in your path!) 
CC=rntcl 
 
# Edit 
#NTHOST=10.0.5.13 
#NTDRIVE='k:' 
 
# Edit 
NTHOST=10.0.5.10 
NTDRIVE='k:' 
 
#NTHOST=localhost 
#NTDRIVE='d:' 
 
# What dir on the UNIX machine is on $NTDRIVE ? 
# This variable MUST NOT end with a slash. 
NTMOUNT= 
 
# Use Simple Pike Remote SHell? 
USE_SPRSH=yes 
 
# Port for sprsh 
NTPORT=4711 
 
#These are only used if you use wine 
watcom=D:\\CDROM 
INCLUDE="$watcom\\H;$watcom\\H\\NT" 
 
# Don't edit 
 
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 
 
NT_TOOL_PATH=$base/tools 
 
export NT_TOOL_PATH 
 
if [ ! -d "$NT_TOOL_PATH" ]; then 
  echo Unable to find NT tools! 
  return 
  exit 
fi 
 
case :$PATH: in 
   *:$NT_TOOL_PATH:*) ;; 
   *) PATH=$NT_TOOL_PATH:$PATH ;; 
esac 
 
NTTOOLS=$NT_TOOL_PATH/lib 
 
if [ "x$NTMOUNT" = x ]; then 
  MNTREPLACE="" 
else 
  MNTREPLACE="s@$NTMOUNT@@g 
" 
fi 
IFS='          

' 
 
export NTHOST NTDRIVE NTCC CC PATH NTTOOLS MNTREPLACE MNTREPLACE  
export NTPORT USE_SPRSH NTMOUNT IFS REMOTE_METHOD watcom INCLUDE 
export NT_TOOL_PATH NTCOMPILER 
 
case /$SHELL-$TERM in 
   */bash-xterm) 
     PROMPT_COMMAND="echo -n ]2\; $REMOTE_METHOD NT compile ]1\; rntcc" 
     export PROMPT_COMMAND 
   ;; 
esac 
 
case /$0 in 
  */init_nt) 
    case /$SHELL in 
      */bash) 
        exec $SHELL -rcfile $NT_TOOL_PATH/bash-fixup 
      ;; 
      *) 
        exec $SHELL 
      ;; 
    esac 
  ;; 
esac