annotate doc/lispref/mkinstalldirs @ 87941:d77b6e5ee8af

* sieve.el (sieve-make-overlay, sieve-overlay-put, sieve-overlays-at): * message.el (message-beginning-of-line): Use featurep instead of bound tests in order to resolve conditionals at compile time. * textmodes/reftex-toc.el (reftex-toc-next, reftex-toc-previous) (reftex-toc-restore-region): * textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer) (reftex-index-phrases-apply-to-region): * textmodes/ispell.el (ispell-word): * progmodes/vhdl-mode.el (vhdl-keep-region-active): * progmodes/pascal.el (pascal-mark-defun): * progmodes/f90.el (f90-mark-subprogram, f90-indent-region) (f90-fill-region): * emulation/tpu-edt.el (tpu-set-mark): * emulation/crisp.el (crisp-region-active): * winner.el (winner-active-region): * ansi-color.el (ansi-color-set-extent-face): Use featurep instead of bound tests in order to resolve conditionals at compile time.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 24 Jan 2008 15:14:52 +0000
parents 2e38ef4443ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84088
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 #! /bin/sh
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 # mkinstalldirs --- make directory hierarchy
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 # Created: 1993-05-16
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 # Public domain
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 errstatus=0
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 for file
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 do
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12 shift
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 pathcomp=
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 for d
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 do
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17 pathcomp="$pathcomp$d"
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 case "$pathcomp" in
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
19 -* ) pathcomp=./$pathcomp ;;
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 esac
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 if test ! -d "$pathcomp"; then
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 echo "mkdir $pathcomp" 1>&2
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25 mkdir "$pathcomp" || lasterr=$?
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 if test ! -d "$pathcomp"; then
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 errstatus=$lasterr
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 fi
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 fi
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32 pathcomp="$pathcomp/"
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 done
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 done
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 exit $errstatus
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37
2e38ef4443ea Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 # mkinstalldirs ends here