Bug 1869647 - Mark hasStorageAccess.sub.https.window.html as intermittent after wpt...
[gecko.git] / intl / icu / source / mkinstalldirs
blob4d20b1620bb288be161697806fa478f8e4887fa2
1 #! /bin/sh
2 # Copyright (C) 2016 and later: Unicode, Inc. and others.
3 # License & terms of use: http://www.unicode.org/copyright.html
4 # ********************************************************************
5 # * COPYRIGHT:
6 # * Copyright (c) 2002-2004, International Business Machines Corporation and
7 # * others. All Rights Reserved.
8 # ********************************************************************
9 # mkinstalldirs --- make directory hierarchy
10 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
11 # Created: 1993-05-16
12 # Public domain
14 errstatus=0
16 for file
18 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
19 shift
21 pathcomp=
22 for d
24 pathcomp="$pathcomp$d"
25 case "$pathcomp" in
26 -* ) pathcomp=./$pathcomp ;;
27 esac
29 if test ! -d "$pathcomp"; then
30 echo "mkdir $pathcomp"
32 mkdir "$pathcomp" || lasterr=$?
34 if test ! -d "$pathcomp"; then
35 errstatus=$lasterr
39 pathcomp="$pathcomp/"
40 done
41 done
43 exit $errstatus
45 # mkinstalldirs ends here