view lispref/mkinstalldirs @ 65755:7b615e6c0ea5

2005-09-30 Bill Wohler <wohler@newt.com> Moved MH-E image files from toolbar and mail directories into etc/images. * mail/reply2.*: Moved to etc/images/mail/reply*. * toolbar/execute.*, toolbar/highlight.*, toolbar/mh-logo.xpm: * toolbar/page-down.*, toolbar/show.*, toolbar/widen.*: Moved to etc/images. * toolbar/alias.*, toolbar/refile.*, toolbar/repack.*: * toolbar/reply*: Moved to etc/images/mail. * toolbar/rescan.*: Moved and renamed to etc/images/refresh.*. * mh-e/mh-customize.el (mh-refile-msg, mh-tool-bar-reply-from) (mh-tool-bar-reply-to, mh-tool-bar-reply-all) (mh-alias-grab-from-field, mh-pack-folder): Image files moved to etc/images/mail so added "mail/" prefix. (mh-reply): Ditto. Also renamed reply2.* to reply.*. (mh-rescan-folder): Ditto. Renamed image file to refresh.* since it can be used in the general sense. Does not have "mail/" prefix.
author Bill Wohler <wohler@newt.com>
date Fri, 30 Sep 2005 17:48:04 +0000
parents 746c40973d25
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