Mercurial > gftp.yaz
view mkinstalldirs @ 25:8ded3af0172c
2002-09-24 Brian Masney <masneyb@gftp.org>
* Remove intl/ directory from CVS
author | masneyb |
---|---|
date | Tue, 24 Sep 2002 11:21:32 +0000 |
parents | ddb983d8574b |
children |
line wrap: on
line source
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain # $Id: mkinstalldirs,v 1.2 2002/09/09 13:29:15 masneyb 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