Browse Source

Add totally bogus tool to generate HTML files one by one when experimenting with individual files

svn path=/branches/test/; revision=13948
tags/stw2018
adridg 9 years ago
parent
commit
415dd4822c
2 changed files with 61 additions and 0 deletions
  1. 4
    0
      Makefile
  2. 57
    0
      tools/bogus-build.pl

+ 4
- 0
Makefile View File

@@ -41,3 +41,7 @@ $(HELPERFILE) :
localmenuinfo.xml: $(HELPERFILE) $(sources)
xsltproc -o $@ $(STYLESHEET) $(HELPERFILE)
rm -f $(HELPERFILE)

%.html : %.xhtml $(HELPERFILE)
perl tools/bogus-build.pl $< | xsltproc -o $@ fsfeurope.xsl -


+ 57
- 0
tools/bogus-build.pl View File

@@ -0,0 +1,57 @@
#! /usr/bin/env perl
#
# bogus-build.pl - a tool for building web pages locally from the
# Free Software Foundation Europe sources
#
# Copyright 2010 Free Software Foundation Europe <team@fsfeurope.org>
# Author: Adriaan de Groot <groot@fsfeurope.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#


print<<EOF;
<?xml version="1.0" encoding="iso-8859-1" ?>

<buildinfo original="en" filename="$filename" language="en" outdated="no">
<trlist> <!-- All translations that this page exists in -->
<tr id="en">English</tr>
</trlist>
<menuset> <!-- The menu items for the right hand bar -->
<menu id="menu/about">/about/about.html</menu>
</menuset>
<textset> <!-- The static text set for this language -->
<text id="menu/about">About</text>
</textset>


<document language="en">
EOF

while(<>) {
last if /<html>/;
}
while(<>) {
last if /<\/html>/;
print;
}

print<<EOF;
</document>
</buildinfo>
EOF



Loading…
Cancel
Save