view src/mkinstalldirs @ 7060:41ccc6f95954 v7.4.842

commit https://github.com/vim/vim/commit/cdf0442d009ea97fad06d72231f7de309c75205a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 27 22:25:10 2015 +0200 patch 7.4.842 Problem: Sending too many messages to close the balloon. Solution: Only send a WM_CLOSE message. (Jurgen Kramer)
author Christian Brabandt <cb@256bit.org>
date Thu, 27 Aug 2015 22:30:13 +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