Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | # ******************************************************************** |
michael@0 | 3 | # * COPYRIGHT: |
michael@0 | 4 | # * Copyright (c) 2002-2004, International Business Machines Corporation and |
michael@0 | 5 | # * others. All Rights Reserved. |
michael@0 | 6 | # ******************************************************************** |
michael@0 | 7 | # mkinstalldirs --- make directory hierarchy |
michael@0 | 8 | # Author: Noah Friedman <friedman@prep.ai.mit.edu> |
michael@0 | 9 | # Created: 1993-05-16 |
michael@0 | 10 | # Public domain |
michael@0 | 11 | |
michael@0 | 12 | errstatus=0 |
michael@0 | 13 | |
michael@0 | 14 | for file |
michael@0 | 15 | do |
michael@0 | 16 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` |
michael@0 | 17 | shift |
michael@0 | 18 | |
michael@0 | 19 | pathcomp= |
michael@0 | 20 | for d |
michael@0 | 21 | do |
michael@0 | 22 | pathcomp="$pathcomp$d" |
michael@0 | 23 | case "$pathcomp" in |
michael@0 | 24 | -* ) pathcomp=./$pathcomp ;; |
michael@0 | 25 | esac |
michael@0 | 26 | |
michael@0 | 27 | if test ! -d "$pathcomp"; then |
michael@0 | 28 | echo "mkdir $pathcomp" |
michael@0 | 29 | |
michael@0 | 30 | mkdir "$pathcomp" || lasterr=$? |
michael@0 | 31 | |
michael@0 | 32 | if test ! -d "$pathcomp"; then |
michael@0 | 33 | errstatus=$lasterr |
michael@0 | 34 | fi |
michael@0 | 35 | fi |
michael@0 | 36 | |
michael@0 | 37 | pathcomp="$pathcomp/" |
michael@0 | 38 | done |
michael@0 | 39 | done |
michael@0 | 40 | |
michael@0 | 41 | exit $errstatus |
michael@0 | 42 | |
michael@0 | 43 | # mkinstalldirs ends here |