diff options
| author | Peter Eisentraut | 2000-06-06 22:01:15 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-06-06 22:01:15 +0000 |
| commit | 5b9d0d9a5cc223e2d875b477a7416851f9f9b564 (patch) | |
| tree | f8391a6ed2be780938b57786f93b6cda814cc231 /config/mkinstalldirs | |
| parent | 42ad25fcd139253912dcee8628f866fbf023ae27 (diff) | |
Moved configure script from src/ to the top level directory. Moved
configuration helper things into config/ dir. Adjusted some relative paths
in makefiles.
Diffstat (limited to 'config/mkinstalldirs')
| -rwxr-xr-x | config/mkinstalldirs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/config/mkinstalldirs b/config/mkinstalldirs new file mode 100755 index 0000000000..cc8783edce --- /dev/null +++ b/config/mkinstalldirs @@ -0,0 +1,36 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman <friedman@prep.ai.mit.edu> +# Created: 1993-05-16 +# Last modified: 1994-03-25 +# Public domain + +errstatus=0 + +for file in ${1+"$@"} ; do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d in ${1+"$@"} ; do + pathcomp="$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" 1>&2 + mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$? + fi + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here |
