Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / intl / icu / source / mkinstalldirs
blobf579788d371d6ecca5fc3b2eb373e388a833bbd1
1 #! /bin/sh
2 # ********************************************************************
3 # * COPYRIGHT:
4 # * Copyright (c) 2002-2004, International Business Machines Corporation and
5 # * others. All Rights Reserved.
6 # ********************************************************************
7 # mkinstalldirs --- make directory hierarchy
8 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
9 # Created: 1993-05-16
10 # Public domain
12 errstatus=0
14 for file
16 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
17 shift
19 pathcomp=
20 for d
22 pathcomp="$pathcomp$d"
23 case "$pathcomp" in
24 -* ) pathcomp=./$pathcomp ;;
25 esac
27 if test ! -d "$pathcomp"; then
28 echo "mkdir $pathcomp"
30 mkdir "$pathcomp" || lasterr=$?
32 if test ! -d "$pathcomp"; then
33 errstatus=$lasterr
37 pathcomp="$pathcomp/"
38 done
39 done
41 exit $errstatus
43 # mkinstalldirs ends here