From 415dd4822c5683301adb0575203c110ff4a38f45 Mon Sep 17 00:00:00 2001 From: adridg Date: Wed, 6 Jan 2010 23:42:48 +0000 Subject: [PATCH] Add totally bogus tool to generate HTML files one by one when experimenting with individual files svn path=/branches/test/; revision=13948 --- Makefile | 4 ++++ tools/bogus-build.pl | 57 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 tools/bogus-build.pl diff --git a/Makefile b/Makefile index 4e87fd6872..74abd2bfcc 100644 --- a/Makefile +++ b/Makefile @@ -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 - + diff --git a/tools/bogus-build.pl b/tools/bogus-build.pl new file mode 100644 index 0000000000..37ca523314 --- /dev/null +++ b/tools/bogus-build.pl @@ -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 +# Author: Adriaan de Groot +# +# 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< + + + + English + + + /about/about.html + + + About + + + + +EOF + +while(<>) { + last if //; +} +while(<>) { + last if /<\/html>/; + print; +} + +print< + +EOF + +