view src/mkinstalldirs @ 10096:1eab38e5cfdf v7.4.2319

commit https://github.com/vim/vim/commit/b07a82b6d5f904ed3e623e775c3458adb1cc0a3e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 20:08:56 2016 +0200 patch 7.4.2319 Problem: No way for a system wide vimrc to stop loading defaults.vim. (Christian Hesse) Solution: Bail out of defaults.vim if skip_defaults_vim was set.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Sep 2016 20:15:06 +0200
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