1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/mkinstalldirs Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +#! /bin/sh 1.5 +# ******************************************************************** 1.6 +# * COPYRIGHT: 1.7 +# * Copyright (c) 2002-2004, International Business Machines Corporation and 1.8 +# * others. All Rights Reserved. 1.9 +# ******************************************************************** 1.10 +# mkinstalldirs --- make directory hierarchy 1.11 +# Author: Noah Friedman <friedman@prep.ai.mit.edu> 1.12 +# Created: 1993-05-16 1.13 +# Public domain 1.14 + 1.15 +errstatus=0 1.16 + 1.17 +for file 1.18 +do 1.19 + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 1.20 + shift 1.21 + 1.22 + pathcomp= 1.23 + for d 1.24 + do 1.25 + pathcomp="$pathcomp$d" 1.26 + case "$pathcomp" in 1.27 + -* ) pathcomp=./$pathcomp ;; 1.28 + esac 1.29 + 1.30 + if test ! -d "$pathcomp"; then 1.31 + echo "mkdir $pathcomp" 1.32 + 1.33 + mkdir "$pathcomp" || lasterr=$? 1.34 + 1.35 + if test ! -d "$pathcomp"; then 1.36 + errstatus=$lasterr 1.37 + fi 1.38 + fi 1.39 + 1.40 + pathcomp="$pathcomp/" 1.41 + done 1.42 +done 1.43 + 1.44 +exit $errstatus 1.45 + 1.46 +# mkinstalldirs ends here