head	1.1;
branch	1.1.1;
access;
symbols
	john2:1.1.1.1.0.6
	john1:1.1.1.1
	lapyu-work:1.1.1.1.0.4
	john-work:1.1.1.1.0.2
	SIXALPHA:1.1.1.1
	TEXLIVE:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2000.10.03.04.02.14;	author plaice;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.10.03.04.02.14;	author plaice;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#!/bin/sh
# mkinstalldirs --- make directory hierarchy (now mktexdir).
# Author: Noah Friedman <friedman@@prep.ai.mit.edu>, created: 1993-05-16.
# Public domain.
# 
# Modified for sticky directory creation, --help, --version.
# te@@informatik.uni-hannover.de and kb@@mail.tug.org.

version='$Id: mktexdir,v 1.13 1999/05/30 18:36:24 olaf Exp $'
usage="Usage: $0 DIRS...
  Create each DIR, including any missing leading directories."
mt_max_args=$#

# Common code for all scripts.
: ${MT_TEXMFMAIN=`kpsewhich --expand-path='$TEXMFMAIN'`}
: ${MT_MKTEX_OPT=`kpsewhich --format='web2c files' mktex.opt`}
test -n "$MT_MKTEX_OPT" || MT_MKTEX_OPT="$MT_TEXMFMAIN/web2c/mktex.opt"
if test ! -f "$MT_MKTEX_OPT"; then
  echo "$0: Cannot find mktex.opt; check your installation." >&2
  exit 1
fi

. "$MT_MKTEX_OPT"

test -n "$MT_MKTEXDIR_OPT" && . "$MT_MKTEXDIR_OPT"

test -z "$MT_APPEND_MASK" && MT_APPEND_MASK="="

errstatus=0

cd $KPSE_DOT
for file
do
   cd $KPSE_DOT
   set fnord `echo ":$file" | \
     sed -ne 's/^:\//#/;s/^:-/.\/-/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d in ${1+"$@@"} ; do
     pathcomp="$pathcomp$d"

     if test ! -d "$pathcomp"; then
        mkdir "$pathcomp" || errstatus=$?
        chmod `kpsestat ${MT_APPEND_MASK} "$pathcomp"/..` "$pathcomp"
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus
@


1.1.1.1
log
@sun2.dante.de download 2/10/2000 of TeXLive (Omega 1.11)
@
text
@@
