annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/icu/67.1/mkinstalldirs @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 #! /bin/sh
jpayne@68 2 # Copyright (C) 2016 and later: Unicode, Inc. and others.
jpayne@68 3 # License & terms of use: http://www.unicode.org/copyright.html
jpayne@68 4 # ********************************************************************
jpayne@68 5 # * COPYRIGHT:
jpayne@68 6 # * Copyright (c) 2002-2004, International Business Machines Corporation and
jpayne@68 7 # * others. All Rights Reserved.
jpayne@68 8 # ********************************************************************
jpayne@68 9 # mkinstalldirs --- make directory hierarchy
jpayne@68 10 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
jpayne@68 11 # Created: 1993-05-16
jpayne@68 12 # Public domain
jpayne@68 13
jpayne@68 14 errstatus=0
jpayne@68 15
jpayne@68 16 for file
jpayne@68 17 do
jpayne@68 18 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
jpayne@68 19 shift
jpayne@68 20
jpayne@68 21 pathcomp=
jpayne@68 22 for d
jpayne@68 23 do
jpayne@68 24 pathcomp="$pathcomp$d"
jpayne@68 25 case "$pathcomp" in
jpayne@68 26 -* ) pathcomp=./$pathcomp ;;
jpayne@68 27 esac
jpayne@68 28
jpayne@68 29 if test ! -d "$pathcomp"; then
jpayne@68 30 echo "mkdir $pathcomp"
jpayne@68 31
jpayne@68 32 mkdir "$pathcomp" || lasterr=$?
jpayne@68 33
jpayne@68 34 if test ! -d "$pathcomp"; then
jpayne@68 35 errstatus=$lasterr
jpayne@68 36 fi
jpayne@68 37 fi
jpayne@68 38
jpayne@68 39 pathcomp="$pathcomp/"
jpayne@68 40 done
jpayne@68 41 done
jpayne@68 42
jpayne@68 43 exit $errstatus
jpayne@68 44
jpayne@68 45 # mkinstalldirs ends here