From 1e1fb67f8baa1dd4071e217f870ff7747d74fdd9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Fri, 16 Jan 1998 16:22:14 -0800
Subject: [PATCH] may now work with other mountpoints than /

Rev: NT/init_nt:1.4
Rev: NT/tools/lib:1.6
---
 NT/init_nt   | 7 +++++++
 NT/tools/lib | 5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/NT/init_nt b/NT/init_nt
index 79dfb1b6ef..f015e75b09 100755
--- a/NT/init_nt
+++ b/NT/init_nt
@@ -1,7 +1,14 @@
 #!/bin/sh
 
+# Edit
 NTHOST=kheleyr
 NTDRIVE='j:'
+
+# What dir on the UNIX machine is on $NTDRIVE ?
+# This variable MUST NOT end with a slash.
+NTMOUNT=
+
+# Don't edit
 PATH=`pwd`/tools:$PATH
 CC=rntcc
 NTTOOLS=`pwd`/tools/lib
diff --git a/NT/tools/lib b/NT/tools/lib
index 1fda8363d3..87fc3f9940 100644
--- a/NT/tools/lib
+++ b/NT/tools/lib
@@ -6,11 +6,12 @@ if [ $NT_DEBUG = yes ]; then
 fi
 
 fixpath() {
-  echo "$*" | sed -e 's@/@\\@g'
+  echo "$*" | sed -e "s@$NTMOUNT@@g
+@/@\\@g"
 }
 
 fixabspath() {
-  echo "$*" | sed -e 's@/@\\@g'
+  fixpath "$*"
 }
 
 getntenv() {
-- 
GitLab