summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-04 00:36:32 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-04 00:36:32 +0800
commitfc5bd5742759eea401ffa112d696a3fe028675d1 (patch)
tree1092d20a4735c2afca91f82d45f988335c5287c9 /util
parentdcf78b3ca3ff11ff35ec376bfc3fbff6923e154e (diff)
downloadpttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.gz
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.bz2
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.lz
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.xz
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.tar.zst
pttbbs-fc5bd5742759eea401ffa112d696a3fe028675d1.zip
better output
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2178 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/cleandir.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/cleandir.pl b/util/cleandir.pl
index 0e1d5b3a..606e3b4b 100644
--- a/util/cleandir.pl
+++ b/util/cleandir.pl
@@ -4,12 +4,13 @@ use strict;
use lib '/home/bbs/bin/';
use BBSFileHeader;
-my($nDels, $prefix) = ();
-$nDels = 0;
+my($nDels, $old, $prefix) = ();
+$old = $nDels = 0;
foreach( @ARGV ){
print "cleaning: $_\n";
cleandir($_);
- print "\n";
+ print ("\t".($nDels - $old). " files deleted\n");
+ $old = $nDels;
}
print "$nDels files deleted\n";