5
# On some systems, the -p option to mkdir (= also create any missing parent
6
# directories) is not available.
10
foreach $arg (@ARGV) {
18
$dir =~ s|/*\Z(?!\n)||s;
24
if ($dir =~ m|[^/]/|s) {
25
local($parent) = $dir;
26
$parent =~ s|[^/]*\Z(?!\n)||s;
31
mkdir($dir, 0777) || die "Cannot create directory $dir: $!\n";
32
print "created directory `$dir'\n";