From 3c0c0d5db4881f69b1fe0efa5757a7c94f8867be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Sat, 21 Mar 1998 19:22:32 -0800
Subject: [PATCH] now goes to the right dir when executed

Rev: src/run_autoconfig:1.20
---
 src/run_autoconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/run_autoconfig b/src/run_autoconfig
index 9af9301548..cef7a41143 100755
--- a/src/run_autoconfig
+++ b/src/run_autoconfig
@@ -4,6 +4,10 @@
 
 need_to_make_depend=no
 
+base=`echo $0 | sed 's@[^/]*$@@g'`
+if test "x$base" != "x" ; then
+  cd "$base"
+fi
 
 find . -type d -print|egrep -v '/(CVS)|(RCS)$'| while read dir; do
 
-- 
GitLab