Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

mkinstalldirs

00001 #! /bin/sh
00002 # mkinstalldirs --- make directory hierarchy
00003 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
00004 # Created: 1993-05-16
00005 # Public domain
00006 
00007 # $Id: mkinstalldirs,v 1.2 1999/09/03 22:08:46 sbooth Exp $
00008 
00009 errstatus=0
00010 
00011 for file
00012 do
00013    set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
00014    shift
00015 
00016    pathcomp=
00017    for d
00018    do
00019      pathcomp="$pathcomp$d"
00020      case "$pathcomp" in
00021        -* ) pathcomp=./$pathcomp ;;
00022      esac
00023 
00024      if test ! -d "$pathcomp"; then
00025         echo "mkdir $pathcomp"
00026 
00027         mkdir "$pathcomp" || lasterr=$?
00028 
00029         if test ! -d "$pathcomp"; then
00030           errstatus=$lasterr
00031         fi
00032      fi
00033 
00034      pathcomp="$pathcomp/"
00035    done
00036 done
00037 
00038 exit $errstatus
00039 
00040 # mkinstalldirs ends here

Generated at Tue Dec 5 10:47:48 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000