head	1.1;
branch	1.1.1;
access;
symbols
	EMACS_21_3:1.1.1.5
	EMACS_21_2:1.1.1.5
	EMACS_21_1:1.1.1.5
	EMACS_21_0_106:1.1.1.5
	EMACS_21_0_105:1.1.1.5
	EMACS_21_0_103:1.1.1.5
	EMACS_20_7:1.1.1.4
	EMACS_20_6:1.1.1.4
	EMACS_20_5:1.1.1.4
	EMACS_20_4:1.1.1.4
	EMACS_20_3:1.1.1.3
	EMACS_20_2:1.1.1.3
	EMACS_20_1:1.1.1.3
	EMACS_19_34:1.1.1.3
	EMACS_19_33:1.1.1.3
	EMACS_19_32:1.1.1.3
	EMACS_19_31:1.1.1.3
	EMACS_19_30:1.1.1.2
	EMACS_19_29:1.1.1.1
	FSF_DIST:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2004.11.05.09.09.59;	author Ben Wing;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.05.09.09.59;	author Ben Wing;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.11.05.09.15.25;	author Ben Wing;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.11.05.09.21.04;	author Ben Wing;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2004.11.05.10.03.25;	author Ben Wing;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2004.11.05.10.29.44;	author Ben Wing;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@@prep.ai.mit.edu>
# Created: 1993-05-16
# Last modified: 1994-03-25
# Public domain

errstatus=0

for file in ${1+"$@@"} ; do 
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d in ${1+"$@@"} ; do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp" 1>&2
        mkdir "$pathcomp" || errstatus=$?
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here
@


1.1.1.1
log
@import emacs-19.29
@
text
@@


1.1.1.2
log
@import emacs-19.30
@
text
@d5 1
d10 1
a10 2
for file
do
@


1.1.1.3
log
@import emacs-19.31
@
text
@a6 2
# $Id: mkinstalldirs,v 1.10 1996/05/03 07:37:52 friedman Exp $

d15 1
a15 2
   for d
   do
d23 1
a23 6

        mkdir "$pathcomp" || lasterr=$?

        if test ! -d "$pathcomp"; then
  	  errstatus=$lasterr
        fi
@


1.1.1.4
log
@import emacs-20.4
@
text
@d7 1
a7 1
# $Id: mkinstalldirs,v 1.11 1998/05/19 07:05:25 drepper dead $
@


1.1.1.5
log
@import emacs-21.0.103
@
text
@d7 1
a7 1
# $Id: mkinstalldirs,v 1.2 2001/02/02 13:09:26 gerd Exp $
d27 1
a27 1
        (mkdir "$pathcomp" && chmod a+rx "$pathcomp") || lasterr=$?
@


