Mercurial > gftp.yaz
view mkinstalldirs @ 18:6b2e606554aa
2002-09-11 Marius Andreiana <mandreiana@yahoo.com>
* configure.in: added 'ro' to ALL_LINGUAS
* po/ro.po: added ( thanks to Mugurel Tudor <mugurelu@go.ro> )
author | mandreiana |
---|---|
date | Wed, 11 Sep 2002 10:26:13 +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