# HG changeset patch # User Steve Kemp # Date 1197395616 0 # Node ID 2b56674bde8453eab5966a2254090ff62816a254 # Parent 249ca4872b6c201116f50f7f6038b6ce60113738 Updated for Debian releas diff -r 249ca4872b6c -r 2b56674bde84 bin/chronicle --- a/bin/chronicle Tue Dec 11 10:56:27 2007 +0000 +++ b/bin/chronicle Tue Dec 11 17:53:36 2007 +0000 @@ -1438,7 +1438,28 @@ my $time = str2time($date); if ( $time ) { - $entry{'pubdate'} = time2str("%a, %e %b %Y 00:00:00 GMT", $time ); + # + # Get the details of the file. + # + my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, + $atime,$mtime,$ctime,$blksize,$blocks) + = stat($filename); + + # + # Get the modification hours. + # + my ($sec,$min,$hour) = localtime( $mtime ); + + # + # Pad + # + $sec = "0$sec" if ( length( $sec ) < 2 ); + $min = "0$min" if ( length( $min ) < 2 ); + $hour = "0$hour" if ( length( $hour ) < 2 ); + + + # + $entry{'pubdate'} = time2str("%a, %e %b %Y $hour:$min:$sec GMT", $time ); $entry{'pubdate'} =~ s/ / /g; } } diff -r 249ca4872b6c -r 2b56674bde84 debian/changelog --- a/debian/changelog Tue Dec 11 10:56:27 2007 +0000 +++ b/debian/changelog Tue Dec 11 17:53:36 2007 +0000 @@ -1,3 +1,13 @@ +chronicle (1.2-1) unstable; urgency=low + + * Initial upload to Debian. + (Closes: #455761) + * New upstream release: + - Reverse sort the date-cloud. + - Add 'pubDate' attributes to our RSS feed(s) + + -- Steve Kemp Mon, 11 Dec 2007 11:58:11 +0000 + chronicle (1.1-1) stable; urgency=low * New upstream release: diff -r 249ca4872b6c -r 2b56674bde84 debian/control --- a/debian/control Tue Dec 11 10:56:27 2007 +0000 +++ b/debian/control Tue Dec 11 17:53:36 2007 +0000 @@ -1,7 +1,7 @@ Source: chronicle Section: web Priority: extra -Maintainer: Felipe Sateler +Maintainer: Steve Kemp Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Homepage: http://www.steve.org.uk/Software/chronicle/ @@ -10,11 +10,11 @@ Architecture: all Depends: ${perl:Depends}, libtimedate-perl, libhtml-template-perl Suggests: memcached -Description: a blog compiler - Chronicle is a tool which will convert a directory of simple +Description: HTML & RSS blog compiler + This is a tool which will convert a directory of simple text files into a static HTML weblog, (or blog if you prefer). . - The system is intentionally simple, but it does support: + The system is intentionally simple, but it supports: . * Template based output. .