From 62531eff7138b73da2a6d2b382959964d67d4269 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 12 Sep 2000 14:48:46 +0000 Subject: Import binutils-2.10 - only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files --- gnu/usr.bin/binutils/mkinstalldirs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gnu/usr.bin/binutils/mkinstalldirs (limited to 'gnu/usr.bin/binutils/mkinstalldirs') diff --git a/gnu/usr.bin/binutils/mkinstalldirs b/gnu/usr.bin/binutils/mkinstalldirs new file mode 100644 index 00000000000..cc8783edce3 --- /dev/null +++ b/gnu/usr.bin/binutils/mkinstalldirs @@ -0,0 +1,36 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# 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 -- cgit v1.2.3