mkdir.sh revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 1994-2011 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# Glenn Fowler <gsf@research.att.com> #
# #
########################################################################
mode=
while :
do case $1 in
-m) case $# in
1) echo "mkdir: -m: mode argument expected" >&2
exit 1
;;
esac
shift
mode=$1
;;
;;
-p) parents=1
;;
*) break
;;
esac
shift
done
if test "" != "$parents"
then for d
do if test ! -d $d
'}
IFS=/
set '' $d
shift
dir=$1
shift
if test "" != "$mode"
fi
fi
for d
if test ! -d "$dir"
if test "" != "$mode"
fi
fi
done
fi
done
if test "" != "$mode"
then for d
done
fi
fi
exit 0