Blame | Last modification | View Log | RSS feed
#! /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.1.1 2002/02/26 02:27:44 timshel Exp $errstatus=0for filedoset fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`shiftpathcomp=for ddopathcomp="$pathcomp$d"case "$pathcomp" in-* ) pathcomp=./$pathcomp ;;esacif test ! -d "$pathcomp"; thenecho "mkdir $pathcomp" 1>&2mkdir "$pathcomp" || lasterr=$?if test ! -d "$pathcomp"; thenerrstatus=$lasterrfifipathcomp="$pathcomp/"donedoneexit $errstatus# mkinstalldirs ends here