Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bogus-build.pl 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #! /usr/bin/env perl
  2. #
  3. # bogus-build.pl - a tool for building web pages locally from the
  4. # Free Software Foundation Europe sources
  5. #
  6. # Copyright 2010 Free Software Foundation Europe <team@fsfeurope.org>
  7. # Author: Adriaan de Groot <groot@fsfeurope.org>
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful, but
  15. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. # General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  22. # 02110-1301, USA.
  23. #
  24. print<<EOF;
  25. <?xml version="1.0" encoding="iso-8859-1" ?>
  26. <buildinfo original="en" filename="$filename" language="en" outdated="no">
  27. <trlist> <!-- All translations that this page exists in -->
  28. <tr id="en">English</tr>
  29. </trlist>
  30. <menuset> <!-- The menu items for the right hand bar -->
  31. <menu id="menu/about">/about/about.html</menu>
  32. </menuset>
  33. <textset> <!-- The static text set for this language -->
  34. <text id="menu/about">About</text>
  35. </textset>
  36. <webset root="http://www.fsfeurope.org">
  37. </webset>
  38. <document language="en">
  39. EOF
  40. while(<>) {
  41. last if /<html>/;
  42. }
  43. while(<>) {
  44. last if /<\/html>/;
  45. print;
  46. }
  47. print<<EOF;
  48. </document>
  49. </buildinfo>
  50. EOF