From 013b3d116d21890b646b17b5828a4a3074e939b9 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Tue, 20 Nov 2012 19:04:20 +0000 Subject: [PATCH] Include tech and community stuff in the build. --- build | 55 +++++++---- index.html | 265 +++++++++++++++++++++++++++------------------------ index.tt | 8 +- releases.txt | 225 ++++++++++++++++++++++++------------------- 4 files changed, 306 insertions(+), 247 deletions(-) diff --git a/build b/build index c0cd4787d..75f290f69 100755 --- a/build +++ b/build @@ -5,6 +5,7 @@ use warnings; use 5.010; use Template; +use Data::Dumper; my $t = Template->new; @@ -28,45 +29,57 @@ my $y_offset = sub { return $y_offset; }; -my $releases = get_rel(); - $t->process('index.tt', { - releases => $releases, + releases => get_rel(), headlines => get_headlines(), + tech => get_tech(), + community => get_community(), years => $years, get_x_offset => $x_offset, get_y_offset => $y_offset, }, 'index.html') or die $t->error; -sub get_rel { - my $rel = {}; - - if (-f 'releases.txt') { - open my $fh, '<', 'releases.txt' or die $!; +sub get_list { + my ($file) = @_; + + my $list = {}; + + if (-f $file) { + open my $fh, '<', $file or die $!; while (<$fh>) { next unless /\S/; chomp; - my ($year, $release) = split /-/, $_, 2; - push @{$rel->{$year}}, $release; + my ($year, $data) = split /\s+/, $_, 2; + push @{$list->{$year}}, $data; } + } else { + warn "File: $file not found"; } + + say Dumper $list; + + return $list; +} - return $rel; +sub get_rel { + return get_list('releases.txt'); } sub get_headlines { - my $hl = {}; + my $hl = get_list('headlines.txt'); - if (-f 'headlines.txt') { - open my $fh, '<', 'headlines.txt' or die $!; - while (<$fh>) { - next unless /\S/; - chomp; - my ($year, $headline) = split /\s+/, $_, 2; - $hl->{$year} = $headline; - } + foreach (keys $hl) { + $hl->{$_} = $hl->{$_}[0]; } - + return $hl; } + +sub get_tech { + return get_list('tech.txt'); +} + +sub get_community { + return get_list('community.txt'); +} \ No newline at end of file diff --git a/index.html b/index.html index 20db83442..9fea5360a 100644 --- a/index.html +++ b/index.html @@ -46,24 +46,24 @@

(In about 25 minutes)

1988 Releases
1988 Community
1988 Technical
@@ -86,24 +86,24 @@

(In about 25 minutes)

1989 Releases
1989 Community
1989 Technical
@@ -126,24 +126,24 @@

(In about 25 minutes)

1990 Releases
1990 Community
1990 Technical
@@ -166,25 +166,24 @@

(In about 25 minutes)

1991 Releases
1991 Community
1991 Technical
@@ -207,21 +206,20 @@

(In about 25 minutes)

1992 Releases
1992 Community
1992 Technical
@@ -244,21 +242,21 @@

(In about 25 minutes)

1993 Releases
1993 Community
1993 Technical
@@ -281,21 +279,23 @@

(In about 25 minutes)

1994 Releases
1994 Community
1994 Technical
@@ -318,21 +318,26 @@

(In about 25 minutes)

1995 Releases
1995 Community
1995 Technical
@@ -355,29 +360,31 @@

(In about 25 minutes)

1996 Releases
1996 Community
1996 Technical
@@ -400,30 +407,31 @@

(In about 25 minutes)

1997 Releases
1997 Community
1997 Technical
@@ -446,23 +454,26 @@

(In about 25 minutes)

1998 Releases
1998 Community
1998 Technical
@@ -485,22 +496,25 @@

(In about 25 minutes)

1999 Releases
1999 Community
1999 Technical
@@ -523,21 +537,26 @@

(In about 25 minutes)

2000 Releases
2000 Community
2000 Technical
@@ -560,21 +579,23 @@

(In about 25 minutes)

2001 Releases
2001 Community
2001 Technical
@@ -597,22 +618,22 @@

(In about 25 minutes)

2002 Releases
2002 Community
2002 Technical
@@ -635,24 +656,25 @@

(In about 25 minutes)

2003 Releases
2003 Community
2003 Technical
@@ -675,25 +697,25 @@

(In about 25 minutes)

2004 Releases
2004 Community
2004 Technical
@@ -716,21 +738,21 @@

(In about 25 minutes)

2005 Releases
2005 Community
2005 Technical
@@ -753,21 +775,20 @@

(In about 25 minutes)

2006 Releases
2006 Community
2006 Technical
@@ -790,21 +811,20 @@

(In about 25 minutes)

2007 Releases
2007 Community
2007 Technical
@@ -827,21 +847,20 @@

(In about 25 minutes)

2008 Releases
2008 Community
2008 Technical
@@ -864,21 +883,21 @@

(In about 25 minutes)

2009 Releases
2009 Community
2009 Technical
@@ -901,23 +920,23 @@

(In about 25 minutes)

2010 Releases
2010 Community
2010 Technical
@@ -940,25 +959,24 @@

(In about 25 minutes)

2011 Releases
2011 Community
2011 Technical
@@ -981,23 +999,22 @@

(In about 25 minutes)

2012 Releases
2012 Community
2012 Technical
diff --git a/index.tt b/index.tt index d319ef598..b7bd4c931 100644 --- a/index.tt +++ b/index.tt @@ -62,14 +62,18 @@
[% year %] Community
[% year %] Technical
diff --git a/releases.txt b/releases.txt index 47db9118a..085756674 100644 --- a/releases.txt +++ b/releases.txt @@ -1,100 +1,125 @@ -1987-Dec-18 1.000 - -1988-Jan-30 1.001..10 -1988-Feb-02 1.011..14 -1988-Jun-05 2.000 -1988-Jun-21 2.001 - -1989-Oct-18 3.000 -1989-Nov-11 3.002..4 -1989-Nov-18 3.005 -1989-Dec-22 3.006..8 - -1990-Mar 3.009..18 -1990-Aug 3.019..28 -1990-Oct 3.029..37 -1990-Nov 3.040..41 - -1991-Jan 3.042..044 -1991-Mar 4.000 -1991-Apr 4.001..3 -1991-Jun 4.004..10 -1991-Nov 4.011..19 - -1992-Jun 4.020..35 - -1993-Feb-05 4.036 - -1994-Oct-17 5.000 - -1995-Mar-13 5.001 - -1996-Feb-29 5.002 -1996-Mar-25 5.002_01 -1996-Jun-25 5.003 -1996-Jul-31 5.003_01 -1996-Aug 5.003_02..03 -1996-Sep 5.003_04..05 -1996-Oct 5.003_06..07 -1996-Nov 5.003_08..10 -1996-Dec 5.003_11..17 - -1997-Jan 5.003_19..23 -1997-Feb 5.003_24..28 -1997-Mar 5.003_90..95 -1997-Apr 5.003_96..98 -1997-May 5.003_99..99a -1997-May-15 5.004 -1997-Jun-13 5.004_01 -1997-Aug-07 5.004_02 -1997-Sep-05 5.004_03 -1997-Oct-15 5.004_04 - -1998-Jul-22 5.005 -1998-Jul-27 5.005_01 -1998-Aug-08 5.005_02 - -1999-Mar-28 5.005_03 -1999-Apr-29 5.004_05 - -2000-Mar-22 5.6.0 - -2001-Apr-08 5.6.1 - -2002-Jul-18 5.8.0 -2002-Dec-18 1.0.15 - -2003-Sep-25 5.8.1 -2003-Nov-04 5.8.2 -2003-Nov-15 5.6.2 -2003-Dec-18 1.0.16 - -2004-Jan-14 5.8.3 -2004-Feb-23 5.005_04 -2004-Apr-21 5.8.4 -2004-Jul-19 5.8.5 -2004-Nov-27 5.8.6 - -2005-May-30 5.8.7 - -2006-Jan-31 5.8.8 - -2007-Dec-18 5.10.0 - -2008-Dec-14 5.8.9 - -2009-Aug-22 5.10.1 - -2010-Apr-12 5.12.0 -2010-May-16 5.12.1 -2010-Sep-06 5.12.2 - -2011-Jan-21 5.12.3 -2011-May-14 5.14.0 -2011-Jun-16 5.14.1 -2011-Jun-20 5.12.4 -2011-Sep-26 5.14.2 - -2012-May-20 5.16.0 -2012-Aug-08 5.16.1 -2012-Oct-12 5.14.3 +1987 1987-Dec-18 1.000 + + +1988 1988-Jan-30 1.001..10 +1988 1988-Feb-02 1.011..14 +1988 1988-Jun-05 2.000 +1988 1988-Jun-21 2.001 + + +1989 1989-Oct-18 3.000 +1989 1989-Nov-11 3.002..4 +1989 1989-Nov-18 3.005 +1989 1989-Dec-22 3.006..8 + + +1990 1990-Mar 3.009..18 +1990 1990-Aug 3.019..28 +1990 1990-Oct 3.029..37 +1990 1990-Nov 3.040..41 + + +1991 1991-Jan 3.042..044 +1991 1991-Mar 4.000 +1991 1991-Apr 4.001..3 +1991 1991-Jun 4.004..10 +1991 1991-Nov 4.011..19 + + +1992 1992-Jun 4.020..35 + + +1993 1993-Feb-05 4.036 + + +1994 1994-Oct-17 5.000 + + +1995 1995-Mar-13 5.001 + + +1996 1996-Feb-29 5.002 +1996 1996-Mar-25 5.002_01 +1996 1996-Jun-25 5.003 +1996 1996-Jul-31 5.003_01 +1996 1996-Aug 5.003_02..03 +1996 1996-Sep 5.003_04..05 +1996 1996-Oct 5.003_06..07 +1996 1996-Nov 5.003_08..10 +1996 1996-Dec 5.003_11..17 + + +1997 1997-Jan 5.003_19..23 +1997 1997-Feb 5.003_24..28 +1997 1997-Mar 5.003_90..95 +1997 1997-Apr 5.003_96..98 +1997 1997-May 5.003_99..99a +1997 1997-May-15 5.004 +1997 1997-Jun-13 5.004_01 +1997 1997-Aug-07 5.004_02 +1997 1997-Sep-05 5.004_03 +1997 1997-Oct-15 5.004_04 + + +1998 1998-Jul-22 5.005 +1998 1998-Jul-27 5.005_01 +1998 1998-Aug-08 5.005_02 + + +1999 1999-Mar-28 5.005_03 +1999 1999-Apr-29 5.004_05 + + +2000 2000-Mar-22 5.6.0 + + +2001 2001-Apr-08 5.6.1 + + +2002 2002-Jul-18 5.8.0 +2002 2002-Dec-18 1.0.15 + + +2003 2003-Sep-25 5.8.1 +2003 2003-Nov-04 5.8.2 +2003 2003-Nov-15 5.6.2 +2003 2003-Dec-18 1.0.16 + + +2004 2004-Jan-14 5.8.3 +2004 2004-Feb-23 5.005_04 +2004 2004-Apr-21 5.8.4 +2004 2004-Jul-19 5.8.5 +2004 2004-Nov-27 5.8.6 + + +2005 2005-May-30 5.8.7 + + +2006 2006-Jan-31 5.8.8 + + +2007 2007-Dec-18 5.10.0 + + +2008 2008-Dec-14 5.8.9 + + +2009 2009-Aug-22 5.10.1 + + +2010 2010-Apr-12 5.12.0 +2010 2010-May-16 5.12.1 +2010 2010-Sep-06 5.12.2 + + +2011 2011-Jan-21 5.12.3 +2011 2011-May-14 5.14.0 +2011 2011-Jun-16 5.14.1 +2011 2011-Jun-20 5.12.4 +2011 2011-Sep-26 5.14.2 + + +2012 2012-May-20 5.16.0 +2012 2012-Aug-08 5.16.1 +2012 2012-Oct-12 5.14.3