Changeset 12551
- Timestamp:
- 05/27/08 19:56:48 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
websites/perl-users.jp/tools/commit-ping-recever.pl
r12136 r12551 7 7 my $news = $ENV{BASEPATH} . '/news.sh'; 8 8 my $html = $ENV{BASEPATH} . '/update.sh'; 9 10 my $base = $ENV{BASEPATH}; 11 my $chalow = "$base/perlnews"; 9 12 10 13 my $e = HTTP::Engine->new( … … 21 24 22 25 sub request_handler { 26 for my $name (qw/ CHLD STOP TSTP TTIN TTOU /) { 27 $SIG{$name} = sub { warn "stop: $name" }; 28 } 23 29 my $c = shift; 30 24 31 print STDERR sprintf "request: %s\n", $c->req->uri; 25 32 return unless $c->req->param('yaml'); … … 33 40 } 34 41 35 `$news` if $is_news; 36 `$html` if $is_html; 42 if ($is_html) { 43 system '/usr/bin/svn', 'up', "$base/html"; 44 } 45 46 if ($is_news) { 47 system '/usr/bin/svn', 'up', "$base/coderepos"; 48 local $ENV{PERL5LIB} = "$chalow:$chalow/lib"; 49 system "$chalow/chalow", '-o', "$base/news", '-c', "$base/cl.conf", '-a', "$base/coderepos/news/assets", "$base/coderepos/news/ChangeLog"; 50 system "$base/kuttuki-rss-1.2/kuttuki-rss.pl", "$base/news/cl.rdf", '--number=5', '--encode=utf8', "--output=$base/news/rss.js"; 51 system "$base/kuttuki-rss-1.2/kuttuki-rss.pl", "http://b.hatena.ne.jp/t/for.perlusers?mode=rss&sort=eid", '--number=5', '--encode=utf8', "--output=$base/news/hateb.js"; 52 } 37 53 print STDERR "news: $is_news, html: $is_html\n" if $is_news || $is_html; 38 54 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)