Skip to content

Commit

Permalink
this file is needed, after all...
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
vadz committed Jun 1, 1999
1 parent 437e8b3 commit 279a979
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions mkinstalldirs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 279a979

Please sign in to comment.