annotate udis86-1.4/mkinstalldirs @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 #! /bin/sh
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 # mkinstalldirs --- make directory hierarchy
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 # Created: 1993-05-16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 # Public domain
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 # $Id: mkinstalldirs,v 1.1.1.1 2006/02/04 09:13:58 vivek5797 Exp $
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 errstatus=0
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 for file
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 do
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 shift
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 pathcomp=
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 for d
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 do
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 pathcomp="$pathcomp$d"
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20 case "$pathcomp" in
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 -* ) pathcomp=./$pathcomp ;;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 esac
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 if test ! -d "$pathcomp"; then
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 echo "mkdir $pathcomp"
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 mkdir "$pathcomp" || lasterr=$?
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 if test ! -d "$pathcomp"; then
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 errstatus=$lasterr
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 fi
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 fi
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 pathcomp="$pathcomp/"
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 done
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 done
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 exit $errstatus
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 # mkinstalldirs ends here