Mercurial > emacs
view mkinstalldirs @ 56369:6578797626ea
Various small changes in addition to:
(Killing Emacs): Expand and clarify description of
`kill-emacs-query-functions' and `kill-emacs-hook'.
(System Environment): Expand and clarify description of `getenv' and `setenv'.
(Timers): Clarify description of `run-at-time'.
(Translating Input): Correct description of `extra-keyboard-modifiers'.
(Flow Control): Correct description of `enable-flow-control'.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Wed, 07 Jul 2004 01:12:49 +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