view mkinstalldirs @ 65130:d2334ecd8eae

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-517 Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 105) - Update from CVS 2005-08-22 Karl Chen <quarl@cs.berkeley.edu> (tiny change) * lisp/gnus/gnus-art.el (gnus-treatment-function-alist): Move date-lapsed to the end of the date treatments. 2005-08-15 Simon Josefsson <jas@extundo.com> * lisp/gnus/pgg.el (url-insert-file-contents): Don't autoload it, Emacs has it in url-handlers.el and XEmacs in url.el. Reported by Luca Capello and Romain Francoise. (pgg-fetch-key-function): Removed, not used? (pgg-insert-url-with-w3): Require url, to get url-insert-file-contents regardless of where it is defined. 2005-08-08 Simon Josefsson <jas@extundo.com> * lisp/gnus/pgg.el: Autoload url-insert-file-contents instead of loading w3/url. (pgg-insert-url-with-w3): Don't load url here. 2005-08-19 Katsumi Yamaoka <yamaoka@jpl.org> * man/emacs-mime.texi (time-date): Fix description of safe-date-to-time. 2005-08-18 Katsumi Yamaoka <yamaoka@jpl.org> * man/emacs-mime.texi (Handles): Remove duplicate item. (Encoding Customization): Fix the default value for mm-coding-system-priorities. (Charset Translation): Emacs doesn't use mm-mime-mule-charset-alist. (Basic Functions): Fix reference. 2005-08-09 Katsumi Yamaoka <yamaoka@jpl.org> * man/gnus.texi (Charsets): Fj hierarchy uses iso-2022-jp.
author Miles Bader <miles@gnu.org>
date Fri, 26 Aug 2005 00:02:06 +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