diff options
author | jbj <devnull@localhost> | 1998-07-17 14:18:48 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-07-17 14:18:48 +0000 |
commit | c1fc46aeb8e828b0d5e196ef774c05fc1aae9ff5 (patch) | |
tree | 5954740dff99a33ddb5b15ac159b2582ede86379 | |
parent | e6545be221f736d49cc746ced7ef8f5fe7dc272c (diff) | |
download | librpm-tizen-c1fc46aeb8e828b0d5e196ef774c05fc1aae9ff5.tar.gz librpm-tizen-c1fc46aeb8e828b0d5e196ef774c05fc1aae9ff5.tar.bz2 librpm-tizen-c1fc46aeb8e828b0d5e196ef774c05fc1aae9ff5.zip |
Create.
CVS patchset: 2174
CVS date: 1998/07/17 14:18:48
-rwxr-xr-x | mkinstalldirs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 000000000..cc9e23ca8 --- /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 1998/07/17 14:18:48 jbj 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" 1>&2 + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here |