]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Test "$pathcomp/." so a symlink to a directory counts as an existing
authorRoland McGrath <roland@gnu.org>
Mon, 25 Mar 1996 07:18:41 +0000 (07:18 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 25 Mar 1996 07:18:41 +0000 (07:18 +0000)
directory.

mkinstalldirs

index cd1fe0a7947c8ef25c705fb074e19baf1e4558f6..b044a331960b6aff96067021f52f92cb22d76d9e 100755 (executable)
@@ -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