ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/autoconf/mkinstalldirs
Revision: 1.1
Committed: Mon Nov 24 17:28:08 2003 UTC (20 years, 7 months ago) by pcg
Branch: MAIN
CVS Tags: rel-7_0, post_menubar_removal, rel-6_2, rel-6_3, rel-6_0, rel-6_1, rel-2_1_0, rel-5_5, rel-5_4, rel-5_7, rel-5_1, rel-5_0, rel-5_3, rel-5_2, rel-4_4, rel-4_6, rel-4_7, rel-5_9, rel-5_8, rel-4_2, rel-4_3, rel-3_7, rel-3_8, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-2_8, rel-3_0, rel-4_0, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-4_1, rel-1-9, rel-1-3, rel-1-2, rxvt-2-0, rel-1_9, rel-3_6, rel-2_7, rel-4_8, rel-4_9
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/sh
2 # mkinstalldirs --- make directory hierarchy
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
4 # Created: 1993-05-16
5 # Last modified: 1994-03-25
6 # Public domain
7
8 errstatus=0
9
10 for file in ${1+"$@"} ; do
11 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
12 shift
13
14 pathcomp=
15 for d in ${1+"$@"} ; do
16 pathcomp="$pathcomp$d"
17 case "$pathcomp" in
18 -* ) pathcomp=./$pathcomp ;;
19 esac
20
21 if test ! -d "$pathcomp"; then
22 echo "mkdir $pathcomp" 1>&2
23 mkdir "$pathcomp" || errstatus=$?
24 fi
25
26 pathcomp="$pathcomp/"
27 done
28 done
29
30 exit $errstatus
31
32 # mkinstalldirs ends here