File:  [parser3project] / parser3 / Attic / mkinstalldirs
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Jan 31 10:20:14 2002 UTC (24 years, 5 months ago) by paf
Branches: MAIN
CVS tags: release_3_0_0007, release_3_0_0006, release_3_0_0005, release_3_0_0004, release_3_0_0003, release_3_0_0002, release_1_0_0001, HEAD
moved etc&www out of src, moved configure&co out of src
added windows-1250.cfg
straightened installation scripts procedure
made targets/cgi/parser3.C be dependant on ./configure --sysconfdir change

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

# $Id: mkinstalldirs,v 1.1 2002/01/31 10:20:14 paf 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

E-mail: