Mercurial > emacs
view lispintro/mkinstalldirs @ 75342:2c4e85a0cf6e
Add 2007 to copyright years.
Chao-Hong Liu has assigned copyright:
EMACS Chao-Hong Liu China 1975 2002-12-20
Assigns past and future changes. (``TUTORIAL'' the file. And I provide
two translations ``TUTORIAL.cn(in gb2312)'' for simplified Chinese and
``TUTORIAL.zh(in big5)''...
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 21 Jan 2007 00:26:00 +0000 |
parents | 746c40973d25 |
children | eb7e8d483840 |
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 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