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