diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-05-08 20:56:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-05-08 20:56:30 +0000 |
commit | 5bc2f642a77010ef3d118dc286b39fa4a7f21699 (patch) | |
tree | 93d643946175191a02d997b300d02f918e7b8877 /scripts/mkinstalldirs | |
parent | c7562c74ed1b18fda99bfd5f6c4b61a449bcb35f (diff) | |
download | glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.zip glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.tar.gz glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.tar.bz2 |
Update.
1998-05-08 21:56 Zack Weinberg <zack@rabi.phys.columbia.edu>
* autolock.sh: Removed.
* manual/move-if-change: Removed.
* scripts: new directory.
* =__ify: moved to scripts.
* config.guess: Likewise.
* config.sub: Likewise.
* gen-FAQ.pl: Likewise.
* install-sh: Likewise.
* mkinstalldirs: Likewise.
* move-if-change: Likewise.
* printsources: Likewise.
* rellns.sh: Likewise.
* test-installation.pl: Likewise.
* configure.in: Look in scripts for config.guess, config.sub,
install-sh.
* Makefile: Distribute all above files in their
new home. Find gen-FAQ.pl and test-installation.pl in scripts.
* manual/Makefile: Find mkinstalldirs and move-if-change in
$(..)scripts. Drop them from distribute. Minor cleanups.
* Makerules: Find mkinstalldirs and rellns-sh in scripts.
* sysdeps/mach/hurd/Makefile: Find move-if-change in scripts.
* timezone/Makefile: Find rellns-sh in scripts.
Diffstat (limited to 'scripts/mkinstalldirs')
-rwxr-xr-x | scripts/mkinstalldirs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/scripts/mkinstalldirs b/scripts/mkinstalldirs new file mode 100755 index 0000000..d0fd194 --- /dev/null +++ b/scripts/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$ + +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" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here |