From c45fc0cdd010f304cc630c2e9c2a04d1d100cd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 3 Apr 1998 16:00:10 +0200 Subject: [PATCH] Added possibility to specify the base directory on the command line. Rev: src/run_autoconfig:1.22 --- src/run_autoconfig | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/run_autoconfig b/src/run_autoconfig index 1687aa3b51..d74107cf8c 100755 --- a/src/run_autoconfig +++ b/src/run_autoconfig @@ -1,14 +1,18 @@ #!/bin/sh # -# $Id: run_autoconfig,v 1.21 1998/03/28 15:01:10 grubba Exp $ +# $Id: run_autoconfig,v 1.22 1998/04/03 14:00:10 grubba Exp $ # # Bootstrap script need_to_make_depend=no -base=`echo $0 | sed 's@[^/]*$@@g'` -if test "x$base" != "x" ; then - cd "$base" +if test "x$1" = "x" ; then + base=`echo $0 | sed 's@[^/]*$@@g'` + if test "x$base" != "x" ; then + cd "$base" + fi +else + cd "$1" fi find . -type d -print|egrep -v '/(CVS)|(RCS)$'| while read dir; do -- GitLab