4 ###APPDATE: Sat Sep 29 15:37:45 2007
6 ###APPDESC: delete directories which even not empty
7 ###APPUSAGE: [options] (directories...)
8 ###APPEXAMPLE: xrmdir -g tmp Temp
9 ###APPOPTION: s:Silent Mode|g:Gui Mode
11 $ARGV[0]="-h" unless(@ARGV);
13 exit(system("formathelp",$0)) if($_ eq "-h" || $_ eq "--help");
20 system("rm","-fdr",@_);
27 system("zenity","--info","--text=$msg");
38 if (system("zenity","-question","-text=$msg")) {
59 if [ -z
"$OPT_Silent" ] ; then
60 DeleteFolder
"$D" 2>/dev/null
1>/dev/null
62 if [ ! -d
"$D" ] ; then
63 Message
"\"$D\" not exists."
65 if Confirm
"Delete \"$D\"?" ; then
71 if Confirm
"Delete " "$@" "\nContinue?" ; then
73 [ "$D" == "-s" -o
"$D" == "-g" ] && continue
74 if [ ! -d
"$D" ] ; then
75 Message
"\"$D\" not exists."