2 # $RCSfile: makedir.SH,v 28453Revision: 4.1 28453Date: 92/08/07 18:24:23 $
5 # Revision 4.1 92/08/07 18:24:23 lwall
7 # Revision 4.0.1.1 92/06/08 14:24:55 lwall
8 # patch20: SH files didn't work well with symbolic links
10 # Revision 4.0 91/03/20 01:27:13 lwall
15 export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$)
19 echo "makedir pathname filenameflag"
24 : guarantee one slash before 1st component
30 : strip last component if it is to be a filename
32 X1) set `echo $1 | sed 's:\(.*\)/[^/]*$:\1:'` ;;
36 : return reasonable status if nothing to be created
37 if test -d "$1" ; then
46 set `echo $1 | sed 's:\(.*\)/:\1 :'`
57 mkdir $dir >/dev/null 2>&1