view mkinstalldirs @ 64281:6d94773592af

* xdisp.c (start_display): Don't reseat to next visible line start if current start position is in a string or image. (move_it_vertically_backward): Be sure to move out of strings and images when moving it2 forward. (move_it_by_lines): When moving forward, move to next buffer position if we end up in a string or image. When moving backward, count rows moved over when moving to start of current row in case row starts in middle of a string or image. Also move further backward if we end up in a string or image. (try_cursor_movement): if overlay string spans multiple lines, move backward to set cursor on start of an overlay string. (cursor_row_p): Row is ok if cursor is at newline from string, but string starts on this line (so we always position cursor at start of string).
author Kim F. Storm <storm@cua.dk>
date Wed, 13 Jul 2005 10:02:42 +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