[gnomeweb-wml] cheese: move all dynamic generated files into includes



commit 636568682ee16c28a2743d91e97e142c5e970db2
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Tue Jul 14 15:21:27 2009 +0200

    cheese: move all dynamic generated files into includes

 projects.gnome.org/cheese/Makefile.am              |   16 +++++++++++-----
 .../cheese/{ => includes}/news.shtml               |    0
 .../cheese/{ => includes}/stable.shtml             |    0
 .../cheese/{ => includes}/stable_archive.shtml     |    0
 .../cheese/{ => includes}/unstable.shtml           |    0
 .../cheese/{ => includes}/unstable_archive.shtml   |    0
 projects.gnome.org/cheese/update.pl                |   12 +++++++-----
 7 files changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/projects.gnome.org/cheese/Makefile.am b/projects.gnome.org/cheese/Makefile.am
index fe06e0e..4738e86 100644
--- a/projects.gnome.org/cheese/Makefile.am
+++ b/projects.gnome.org/cheese/Makefile.am
@@ -7,19 +7,25 @@ urlpath = /cheese/
 
 page_SCRIPTS= \
 	index.shtml \
-	news.shtml \
 	download.shtml \
-	stable.shtml \
-	unstable.shtml \
 	archive.shtml \
-	stable_archive.shtml \
-	unstable_archive.shtml \
 	tour.shtml \
 	header.shtml \
 	footer.shtml \
 	detect.py \
 	$(NULL)
 
+includesdir=$(pagedir)/includes
+includes_DATA = \
+	news.shtml \
+	unstable.shtml \
+	stable_archive.shtml \
+	unstable_archive.shtml \
+	stable.shtml \
+	data/themes/cheese/document.all.css \
+	data/themes/cheese/document.screen.css \
+	$(NULL)
+
 themedir=$(pagedir)/data/themes/cheese
 theme_DATA = \
 	data/themes/cheese/document.all.css \
diff --git a/projects.gnome.org/cheese/news.shtml b/projects.gnome.org/cheese/includes/news.shtml
similarity index 100%
rename from projects.gnome.org/cheese/news.shtml
rename to projects.gnome.org/cheese/includes/news.shtml
diff --git a/projects.gnome.org/cheese/stable.shtml b/projects.gnome.org/cheese/includes/stable.shtml
similarity index 100%
rename from projects.gnome.org/cheese/stable.shtml
rename to projects.gnome.org/cheese/includes/stable.shtml
diff --git a/projects.gnome.org/cheese/stable_archive.shtml b/projects.gnome.org/cheese/includes/stable_archive.shtml
similarity index 100%
rename from projects.gnome.org/cheese/stable_archive.shtml
rename to projects.gnome.org/cheese/includes/stable_archive.shtml
diff --git a/projects.gnome.org/cheese/unstable.shtml b/projects.gnome.org/cheese/includes/unstable.shtml
similarity index 100%
rename from projects.gnome.org/cheese/unstable.shtml
rename to projects.gnome.org/cheese/includes/unstable.shtml
diff --git a/projects.gnome.org/cheese/unstable_archive.shtml b/projects.gnome.org/cheese/includes/unstable_archive.shtml
similarity index 100%
rename from projects.gnome.org/cheese/unstable_archive.shtml
rename to projects.gnome.org/cheese/includes/unstable_archive.shtml
diff --git a/projects.gnome.org/cheese/update.pl b/projects.gnome.org/cheese/update.pl
index 077188e..7e0df02 100755
--- a/projects.gnome.org/cheese/update.pl
+++ b/projects.gnome.org/cheese/update.pl
@@ -27,6 +27,8 @@ use Net::FTP;
 use Date::Format;
 use LWP::Simple;
 
+# directory where the include files lurk around
+my $includes_dir = "includes/";
 # maximum stable packages to list
 my $max_stables = 7;
 # maximum unstable packages to list
@@ -94,10 +96,10 @@ $gnomeftp->quit;
 my @sorted_keys =
     sort { $packages{$b}{"epoch"} <=> $packages{$a}{"epoch"} } keys %packages;
 
-open (STABLE, ">stable.shtml");
-open (UNSTABLE, ">unstable.shtml");
-open (STABLE_ARCHIVE, ">stable_archive.shtml");
-open (UNSTABLE_ARCHIVE, ">unstable_archive.shtml");
+open (STABLE, ">${includes_dir}stable.shtml");
+open (UNSTABLE, ">${includes_dir}unstable.shtml");
+open (STABLE_ARCHIVE, ">${includes_dir}stable_archive.shtml");
+open (UNSTABLE_ARCHIVE, ">${includes_dir}unstable_archive.shtml");
 
 $i = 0;
 $j = 0;
@@ -152,7 +154,7 @@ close (UNSTABLE_ARCHIVE);
 print "\n";
 print "++ Retrieving release announcements from mail.gnome.org\n";
 
-open (NEWS, ">news.shtml");
+open (NEWS, ">${includes_dir}news.shtml");
 print NEWS "          <h2>News</h2>\n";
 
 for (@sorted_keys) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]