Mercurial > hg > easyhg-kdiff3
view kdiff3/admin/mkinstalldirs @ 10:922a2b458fb2
Now the html files will be automatically generated from the index.docbook.
(Using meinproc from KDE.)
author | joachim99 |
---|---|
date | Mon, 06 Oct 2003 19:00:15 +0000 |
parents | 53b8ecbce0cb |
children | 415083d043f3 |
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$ 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