From 2de971ca68f23edef6145ec84d3694538c2211bd Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Fri, 26 Jan 2007 17:03:52 +0000 Subject: [PATCH] add missing script git-svn-id: file:///tmp/cracklib-svn/trunk@94 4175fe1e-86d5-4fdc-8e6a-506fab9d8533 --- cracklib/mkinstalldirs | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 cracklib/mkinstalldirs diff --git a/cracklib/mkinstalldirs b/cracklib/mkinstalldirs new file mode 100755 index 0000000..167d07b --- /dev/null +++ b/cracklib/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +# $Id: mkinstalldirs,v 1.2 2002/02/10 21:13:52 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" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here -- 2.40.0