intl/icu/source/mkinstalldirs

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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
    15 do
    16    set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
    17    shift
    19    pathcomp=
    20    for d
    21    do
    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
    34         fi
    35      fi
    37      pathcomp="$pathcomp/"
    38    done
    39 done
    41 exit $errstatus
    43 # mkinstalldirs ends here

mercurial