view src/mkinstalldirs @ 11089:9266a6852676 v8.0.0432

patch 8.0.0432: "make shadow" creates an invalid link commit https://github.com/vim/vim/commit/12d1dc9155a507f2bbffae19696c33a640fbc8d1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 8 22:39:50 2017 +0100 patch 8.0.0432: "make shadow" creates an invalid link Problem: "make shadow" creates an invalid link. Solution: Don't link "*.vim". (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Wed, 08 Mar 2017 22:45:04 +0100
parents 70c67b1bb1f1
children
line wrap: on
line source

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

errstatus=0

for file
do
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d
   do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
	echo "mkdir $pathcomp" 1>&2

	mkdir "$pathcomp" || lasterr=$?

	if test ! -d "$pathcomp"; then
	  errstatus=$lasterr
	fi
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here