From 1b1056501c853765079475ded63c761a41df3e1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 24 Sep 1998 19:34:03 +0200
Subject: [PATCH] Changed "localdir" handling somewhat.

Rev: src/run_autoconfig:1.24
---
 src/run_autoconfig | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/run_autoconfig b/src/run_autoconfig
index 52bd3bd464..425b2d656d 100755
--- a/src/run_autoconfig
+++ b/src/run_autoconfig
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $Id: run_autoconfig,v 1.23 1998/09/20 08:30:32 hubbe Exp $
+# $Id: run_autoconfig,v 1.24 1998/09/24 17:34:03 grubba Exp $
 #
 # Bootstrap script
 
@@ -11,11 +11,16 @@ if test "x$1" = "x" ; then
   if test "x$base" != "x" ; then
     cd "$base"
   fi
+
+  localdir=`pwd`
 else
   cd "$1"
-fi
 
-localdir=`pwd`
+  localdir=`echo $0 | sed 's@[^/]*$@@g'`
+  if test "x$localdir" = "x"; then
+    localdir=`pwd`
+  fi
+fi
 
 find . -type d -print|egrep -v '/(CVS)|(RCS)$'| while read dir; do
 
-- 
GitLab