diff options
author | reinelt <> | 2000-03-10 12:02:43 +0000 |
---|---|---|
committer | reinelt <> | 2000-03-10 12:02:43 +0000 |
commit | 2ceed0e89cf69fd2488767075edc83cdefc00a6c (patch) | |
tree | 072edbca87c53c233d790348843db050c4c3c31a /mkinstalldirs | |
parent | 105a7ce7020bc59816f12326bf1ae4470c85ee4c (diff) | |
download | lcd4linux-2ceed0e89cf69fd2488767075edc83cdefc00a6c.tar.gz |
[lcd4linux @ 2000-03-10 12:02:43 by reinelt]
autoconf/automake
Diffstat (limited to '')
-rwxr-xr-x | mkinstalldirs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 0000000..7cb8639 --- /dev/null +++ b/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman <friedman@prep.ai.mit.edu> +# Created: 1993-05-16 +# Public domain + +# $Id: mkinstalldirs,v 1.1 2000/03/10 12:02:43 reinelt Exp $ + +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" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here |