view mkinstalldirs @ 62053:57aabea77432

From Ulf Jasper <ulf.jasper@web.de>: (icalendar-version): Now at 0.12. (icalendar-duration-correction): Remove. (icalendar--get-event-properties): Split result at commas. (icalendar--decode-isoduration): New optional argument DURATION-CORRECTION. (icalendar--convert-ordinary-to-ical) (icalendar--convert-weekly-to-ical) (icalendar--convert-yearly-to-ical) (icalendar--convert-sexp-to-ical) (icalendar--convert-block-to-ical) (icalendar--convert-float-to-ical) (icalendar--convert-date-to-ical) (icalendar--convert-cyclic-to-ical) (icalendar--convert-anniversary-to-ical): New functions, extracted from icalendar-export-region, with bug fixes. (icalendar-export-region): Use the above functions. (icalendar-import-buffer): Check before saving diary file. (icalendar--convert-recurring-to-diary) (icalendar--convert-non-recurring-all-day-to-diary) (icalendar--convert-non-recurring-not-all-day-to-diary): New functions, extracted from icalendar--convert-ical-to-diary, with bug fixes. (icalendar--convert-ical-to-diary): Use the above functions.
author Glenn Morris <rgm@gnu.org>
date Tue, 03 May 2005 16:35:27 +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