From: Roland McGrath Date: Mon, 25 Mar 1996 07:18:41 +0000 (+0000) Subject: Test "$pathcomp/." so a symlink to a directory counts as an existing X-Git-Tag: fsf-origin~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf77156a0ef987f5e57f6b830578c21bae36d48d;p=thirdparty%2Fautoconf.git Test "$pathcomp/." so a symlink to a directory counts as an existing directory. --- diff --git a/mkinstalldirs b/mkinstalldirs index cd1fe0a7..b044a331 100755 --- a/mkinstalldirs +++ b/mkinstalldirs @@ -18,7 +18,8 @@ do -* ) pathcomp=./$pathcomp ;; esac - if test ! -d "$pathcomp"; then + # Test `DIR/.' so that we see a symlink to a directory as a directory. + if test ! -d "$pathcomp"/.; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" || errstatus=$? fi