view mkinstalldirs @ 56086:c5c08e52e9d6

Update for CC Mode 5.30 and incidental amendments. ("AWK"): Is consistently thus spelt throughout. (AWK, Pike): Document as "C-like modes". (@kbd{M-j}): Document as alternative to @kbd{C-M-j}. (M-x man): Supersedes M-x manual-entry. Add numerous index entries. Correct "ESC a/e" to "M-a/e". ("Comments in C"): Delete node; the info is in CC Mode manual. (c-comment-only-line-offset): Remove description. (C-c ., C-c C-c): Describe new C Mode bindings. (C-u TAB, indent-code-rigidly, c-indent-exp, c-tab-always-indent) (@dfn{Style}, c-default-style, comment-column, comment-padding) (c-up-conditional, c-beginning-of-statement, c-end-of-statement): Amend definitions. (c-beginning-of-defun, c-end-of-defun, c-context-line-break): Describe functions. (c-comment-start-regexp, c-hanging-comment-ender-p) (c-hanging-comment-starter-p): Remove obsolete definitions.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Jun 2004 22:14:41 +0000
parents 746c40973d25
children 730155197b96 eb7e8d483840
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

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