aboutsummaryrefslogtreecommitdiffstats
path: root/mkinstalldirs
blob: 8e6bb1c0c18197c9bb0d7af81952a75c5baf25e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

# $Id: mkinstalldirs,v 1.2 2003/02/27 07:43:11 reinelt 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
g/svn/lcd4linux/trunk@893 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-03ULA200 driver by Bernhard Wallemichael7-2/+825 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@892 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-03indentmichael1-4/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@891 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-31Increased the maximum bps to 230400, if defined in <termios.h>.sonic741-2/+7 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@890 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-27git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@889 ↵sonic741-18/+11 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-27D4D updates by Svenmichael1-38/+60 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@888 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-03driver for 4D Systems serial displays by Sven Killigmichael9-45/+846 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@887 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-03signed/unsigned mismatchmichael1-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@886 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-26added command functionsmichux1-2/+130 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@885 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-15added IRLCD driver by Jean-Philippe Civademichael10-5/+467 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@884 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-15'autoreconf -f -i' run & config.rpath addedmichael8-370/+1617 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@883 3ae390bd-cb1e-0410-b409-cd5a39f66f1f