changeset 83:2b56674bde84

Updated for Debian releas
author Steve Kemp <steve@steve.org.uk>
date Tue, 11 Dec 2007 17:53:36 +0000
parents 249ca4872b6c
children c7f71166bc90
files bin/chronicle debian/changelog debian/control
diffstat 3 files changed, 36 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }
     }
--- 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 <skx@debian.org>  Mon, 11 Dec 2007 11:58:11 +0000
+
 chronicle (1.1-1) stable; urgency=low
 
   * New upstream release:
--- 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 <fsateler@gmail.com>
+Maintainer: Steve Kemp <skx@debian.org>
 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.
  .