Mercurial > vim
view src/mkinstalldirs @ 7273:73207eca53f5 v7.4.942
commit https://github.com/vim/vim/commit/60422e68a3a555144f8c76c666f050e8d104c16b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 25 23:53:01 2015 +0100
patch 7.4.942
Problem: test_tagcase breaks for small builds.
Solution: Bail out of the test early. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Nov 2015 08:22:10 +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