view lispref/mkinstalldirs @ 88321:afd76e7b9651

(rmail-label-obarray): Deleted. (rmail-attributes): Use an ordinary list of symbols. (rmail-deleted-label): Use an ordinary symbol. (rmail-keywords): Doc, initial value nil. (rmail-keywords, rmail-keyword-init): Deleted defuns. (rmail-attribute-p, rmail-keyword-p, rmail-make-label): Simplify. (rmail-keyword-register-keywords, rmail-install-keyword): Replaced. (rmail-register-keywords, rmail-register-keyword): Replacements. (rmail-add-label, rmail-kill-label): Call set-label with a symbol. (rmail-read-label): Return a string. (rmail-set-label): Rewrote. Call rmail-display-labels always.
author Alex Schroeder <alex@gnu.org>
date Tue, 28 Feb 2006 09:27:20 +0000
parents d7ddb3e565de
children 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" || lasterr=$?

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

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here