view mkinstalldirs @ 1464:ae075ecc7c34

[gaim-migrate @ 1474] I got the "internet" keys on my keyboard working. <Creedence Clearwater playing....> o/~ and daddy always smiled, took me by the hand, saying someday, you'll understand. o/~ Next Track! <Searchers...> o/~ Seven little bottles of: Love Potion #9! o/~ Next! <Marcy Playground...> o/~ Blue... like water. Blue... like heaven has, allllll of the time o/~ Next! <Wat Tyler> o/~ I'm, going, to, fart in the face of my father, wank in the wig of a judge, piss in the whistle of a policeman, i bear them all a grudge o/~ Next! <Veruca Salt> o/~ Leave me! Right here! Cuz I don't wanna go! o/~ Next! <Turtles> o/~ Imagine me and you, I do, I think about you day and night, it's only right, to think about the girl you love, and hold her tight, so happy together! o/~ Next! Next! Led Zeppelin! Led Zep! Woohoo! I'm going to go listen to Led Zeppelin now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 03 Feb 2001 11:57:24 +0000
parents 494816c30ca7
children
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

# $Id: mkinstalldirs 14 2000-03-23 03:23:41Z robflynn $

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