forked from mmitch/webcomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stallcheck.pl
executable file
·102 lines (94 loc) · 2.66 KB
/
stallcheck.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/perl -w
#
# check for stalled comic scripts
#
# Copyright (C) 2009 Christian Garbs <[email protected]>
# licensed unter GNU PL v2 or later
#
use strict;
# whitelist
my %whitelist = map { $_ => $_ } qw(
COMIC
archive/1994/www.dilbert.com
archive/1995/www.dilbert.com
archive/1996/www.dilbert.com
archive/1997/www.dilbert.com
archive/1998/www.dilbert.com
archive/1999/www.dilbert.com
archive/2000/www.dilbert.com
archive/2001/www.dilbert.com
archive/2002/www.dilbert.com
archive/2003/www.dilbert.com
archive/2004/www.dilbert.com
archive/2004/www.penny-arcade.com
archive/2005/ChugworthAcademy
archive/2005/IrregularWebcomic
archive/2005/arlonjanis
archive/2005/www.ctrlaltdel-online.com
archive/2005/www.dilbert.com
archive/2005/www.errantstory.com
archive/2005/www.penny-arcade.com
archive/2005/www.userfriendly.org
archive/2009/Flipside
archive/2009/IrregularWebcomic
archive/2009/KeenSpot/CountYourSheep
archive/2009/KeenSpot/Lounge
archive/2009/KeenSpot/SinFest
archive/2009/KeenSpot/TwoLumps
archive/2009/QuestionableContent
archive/2009/SequentialArt
archive/2009/requiem.seraphim-inn.com
archive/2009/www.ctrlaltdel-online.com
archive/2009/www.dilbert.com
archive/2009/www.errantstory.com
archive/2009/www.girlgeniusonline.com/AdvancedClass
archive/2009/www.megatokyo.com
archive/2009/www.misfile.com
archive/2009/www.nichtlustig.de
archive/2009/www.penny-arcade.com
archive/2009/www.sakurai-cartoons.de
archive/2009/www.shortpacked.com
archive/2009/www.userfriendly.org
archive/2009/xkcd
archive/2009/yafgc.shipsinker.com
archive/www.applegeeks.com
inverloch.seraph-inn.com
manga.clone-army.org
manga.clone-army.org/april_and_may
manga.clone-army.org/hh
manga.clone-army.org/june_in_summer
manga.clone-army.org/momoka_corner
manga.clone-army.org/paper_eleven
manga.clone-army.org/penny_tribute
tsunamichan.keenspace.com/anime_parody
tsunamichan.keenspace.com/experimental_comic_kotone
tsunamichan.keenspace.com/guest_strips
tsunamichan.keenspace.com/katwalk_studio
tsunamichan.keenspace.com/magical_mina
www.alpha-shade.com
www.exploitationnow.com
www.girlgeniusonline.com
www.machall.com
www.michael-fredrich.de
www.pbfcomics.com
www.queenofwands.net
www.ruthe.de
www.w00t-comic.net
);
# find comic directories
my @dirs;
open COMICS, 'find -name COMIC|' or die "can't spawn find: $!";
while (my $line = <COMICS>) {
chomp $line;
$line =~ s:^./::;
$line =~ s:/COMIC::;
push @dirs, $line unless exists $whitelist{$line};
}
close COMICS or die "can't close find: $!";
# check directories
my $time = time();
foreach my $dir (sort @dirs) {
my $mtime = (stat( $dir.'/index' ))[9];
my $days = int (($time - $mtime) / (60 * 60 * 24));
printf "%3dd %s\n", $days, $dir if $days > 14;
}