Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5739 in orxonox.OLD for branches/world_entities/mkinstalldirs


Ignore:
Timestamp:
Nov 23, 2005, 3:33:40 PM (19 years ago)
Author:
manuel
Message:

groundturret loads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/mkinstalldirs

    r5479 r5739  
    22# mkinstalldirs --- make directory hierarchy
    33
    4 scriptversion=2005-06-29.22
     4scriptversion=2005-02-02.21
    55
    66# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
     
    1313
    1414errstatus=0
    15 dirmode=
     15dirmode=""
    1616
    1717usage="\
     
    104104for file
    105105do
    106   case $file in
    107     /*) pathcomp=/ ;;
    108     *)  pathcomp= ;;
    109   esac
    110   oIFS=$IFS
    111   IFS=/
    112   set fnord $file
     106  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
    113107  shift
    114   IFS=$oIFS
    115108
     109  pathcomp=
    116110  for d
    117111  do
    118     test "x$d" = x && continue
    119 
    120     pathcomp=$pathcomp$d
     112    pathcomp="$pathcomp$d"
    121113    case $pathcomp in
    122114      -*) pathcomp=./$pathcomp ;;
     
    133125        if test ! -z "$dirmode"; then
    134126          echo "chmod $dirmode $pathcomp"
    135           lasterr=
     127          lasterr=""
    136128          chmod "$dirmode" "$pathcomp" || lasterr=$?
    137129
     
    143135    fi
    144136
    145     pathcomp=$pathcomp/
     137    pathcomp="$pathcomp/"
    146138  done
    147139done
Note: See TracChangeset for help on using the changeset viewer.