diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-10 17:10:05 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-10 17:10:05 +0200 |
commit | 582b500cd996c96054615870fd13d6ab0ea77428 (patch) | |
tree | ac17afc801d6c2449910e3fcbb6f45eed401feba /external-libs/pcre/mkinstalldirs | |
parent | 9e1a25fc55534ac05ef73727819970217b3e488c (diff) | |
download | qpdf-582b500cd996c96054615870fd13d6ab0ea77428.tar.zst |
start integrating windows port
git-svn-id: svn+q:///qpdf/trunk@757 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'external-libs/pcre/mkinstalldirs')
-rw-r--r-- | external-libs/pcre/mkinstalldirs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/external-libs/pcre/mkinstalldirs b/external-libs/pcre/mkinstalldirs new file mode 100644 index 00000000..70f983f5 --- /dev/null +++ b/external-libs/pcre/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.12.2.1 1998/12/26 17:32:14 bje 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 |