view lispref/mkinstalldirs @ 82939:f1ad11ae7c01

New feature to display several time zones in a buffer. (display-time-world-mode, display-time-world-display) (display-time-world, display-time-world-timer): New functions. display-time-world-list, display-time-world-time-format) (display-time-world-buffer-name, display-time-world-timer-enable) (display-time-world-timer-second, display-time-world-mode-map): New variables.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Aug 2007 15:04:00 +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