view mkinstalldirs @ 36207:3f52023cf745

Release mh-e-doc-1.3 for Emacs 21.1. (Viewing): Added mh-header-display index entry. (Organizing,Customizing Reading): Added mh-kill-folder index entry. (Preface): The current version of mh-e has come standard since 19.29. Since Version 5 of mh-e has been out so long, lots of text regarding earlier versions was pruned. (Conventions): Use BACKSPACE instead of DELETE in Emacs 21. (Reading MIME): Use nmh commands. (Bug Reports): Current maintainer now Bill Wohler. Bug reports now at SourceForge. (Mailing List): Mailing lists now at SourceForge. (MH FAQ): FAQ now at faqs.org. (Getting mh-e): Version in Emacs should be fairly up to date. New releases at SourceForge. (History): mh-e now maintained by Bill Wohler at SourceForge. (Changes to mh-e): Gone. (Copying): Clean up close-quote punctuation (rms-1.7).
author Bill Wohler <wohler@newt.com>
date Mon, 19 Feb 2001 19:13:47 +0000
parents 774df19dd335
children f0eb34e60705 746c40973d25
line wrap: on
line source

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

# $Id: mkinstalldirs,v 1.1 2001/02/02 13:04:53 gerd Exp $

errstatus=0

for file
do
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d
   do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp" 1>&2

        (mkdir "$pathcomp" && chmod a+rx "$pathcomp") || lasterr=$?

        if test ! -d "$pathcomp"; then
  	  errstatus=$lasterr
        fi
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here