lintian: r1371 - in trunk: debian reporting reporting/templates
Author: djpig
Date: 2008-06-10 13:45:32 +0200 (Tue, 10 Jun 2008)
New Revision: 1371
Modified:
trunk/debian/changelog
trunk/reporting/config
trunk/reporting/html_reports
trunk/reporting/templates/index.tmpl
Log:
* reporting/config:
+ Generate files in $HOME/www directly instead
of $HOME/www/reports.
* reporting/html_reports:
+ Generate the manual and lintian.log symlinks
dynamically, so that we don't need the reports subdirectory
anymore. Also generate a reports -> . symlink for
backwards compatibility.
* reporting/index.tmpl:
+ Remove obsolete reports/ subdirectory from the links.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-06-10 00:09:48 UTC (rev 1370)
+++ trunk/debian/changelog 2008-06-10 11:45:32 UTC (rev 1371)
@@ -6,13 +6,22 @@
* reporting/checkout-release:
+ [FL] New helper script for lintian.d.o maintainance.
- * reporting/{head,foot}.tmpl:
- + [FL] New templates meant for inclusion by other templates
- for common header and footer parts
+ * reporting/config:
+ + [FL] Generate files in $HOME/www directly instead
+ of $HOME/www/reports.
* reporting/html_reports:
+ [FL] Allow inclusion of the new shared templates by
convenient functions. Remove some duplicated data
setting while I'm on it.
+ + [FL] Generate the manual and lintian.log symlinks
+ dynamically, so that we don't need the reports subdirectory
+ anymore. Also generate a reports -> . symlink for
+ backwards compatibility.
+ * reporting/{head,foot}.tmpl:
+ + [FL] New templates meant for inclusion by other templates
+ for common header and footer parts
+ * reporting/index.tmpl:
+ + [FL] Remove obsolete reports/ subdirectory from the links.
* reporting/*.tmpl:
+ [FL] Replace common headers/footers with calls to the
new head()/foot() functions.
Modified: trunk/reporting/config
===================================================================
--- trunk/reporting/config 2008-06-10 00:09:48 UTC (rev 1370)
+++ trunk/reporting/config 2008-06-10 11:45:32 UTC (rev 1371)
@@ -10,7 +10,7 @@
$LINTIAN_ROOT = "$HOME/root";
$LINTIAN_LAB = "$HOME/laboratory";
$LOG_DIR = "$HOME/logs";
-$HTML_DIR = "$HOME/www/reports";
+$HTML_DIR = "$HOME/www";
$HTML_TMP_DIR = "$HTML_DIR.new";
$LINTIAN_CFG = "$LINTIAN_ROOT/reporting/lintian-dummy.cfg"; # this config file has to be empty!
$LINTIAN_UNPACK_LEVEL = "";
Modified: trunk/reporting/html_reports
===================================================================
--- trunk/reporting/html_reports 2008-06-10 00:09:48 UTC (rev 1370)
+++ trunk/reporting/html_reports 2008-06-10 11:45:32 UTC (rev 1371)
@@ -106,6 +106,14 @@
or die "cannot create output directory $HTML_TMP_DIR/maintainer: $!\n";
mkdir("$HTML_TMP_DIR/tags", 0777)
or die "cannot create output directory $HTML_TMP_DIR/tags: $!\n";
+symlink(".", "$HTML_TMP_DIR/reports")
+ or die "cannot create symlink $HTML_TMP_DIR/reports: $!\n";
+symlink("$LINTIAN_ROOT/doc/lintian.html", "$HTML_TMP_DIR/manual")
+ or die "cannot create symlink $HTML_TMP_DIR/manual: $!\n";
+if ($ARGV[0]) {
+ symlink($ARGV[0], "$HTML_TMP_DIR/lintian.log")
+ or die "cannot create symlink $HTML_TMP_DIR/lintian.log: $!\n";
+}
copy("$LINTIAN_ROOT/reporting/lintian.css", "$HTML_TMP_DIR/lintian.css")
or die "cannot copy lintian.css to $HTML_TMP_DIR: $!\n";
for my $image (qw/ico.png l.png logo-small.png/) {
Modified: trunk/reporting/templates/index.tmpl
===================================================================
--- trunk/reporting/templates/index.tmpl 2008-06-10 00:09:48 UTC (rev 1370)
+++ trunk/reporting/templates/index.tmpl 2008-06-10 11:45:32 UTC (rev 1371)
@@ -26,14 +26,14 @@
<h2>Indices</h2>
<ul>
- <li><a href="reports/maintainers.html">Maintainers</a></li>
- <li><a href="reports/tags.html">Tag types</a></li>
+ <li><a href="maintainers.html">Maintainers</a></li>
+ <li><a href="tags.html">Tag types</a></li>
<li>Packages that have names starting with:
<ul>
- <li><a href="reports/packages_1.html">0-9, A-F</a></li>
- <li><a href="reports/packages_2.html">G-L</a></li>
- <li><a href="reports/packages_3.html">M-R</a></li>
- <li><a href="reports/packages_4.html">S-Z</a></li>
+ <li><a href="packages_1.html">0-9, A-F</a></li>
+ <li><a href="packages_2.html">G-L</a></li>
+ <li><a href="packages_3.html">M-R</a></li>
+ <li><a href="packages_4.html">S-Z</a></li>
</ul>
</li>
</ul>
Reply to: