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.

wgen2xhtml.sh 382B

1234567891011121314151617
  1. #!/bin/sh
  2. sed -rn '
  3. /---/,/---/{
  4. s:^HeaderTitle\: *(.+)$:<?xml version="1.0" encoding="utf-8" ?>\
  5. <html> <head>\
  6. <title>\1</title>\
  7. </head> <body>\
  8. :p;d
  9. };
  10. 1,${
  11. s:\{link\: *\{path\: *([^,]+), *attr\: *\{\:link_text\: *([^\}]+)\}\}\}:<a href="\1">\2</a>:g
  12. s:href="index.html":href="pdfreaders.html":g
  13. s:\{relocatable\: *(.+)\}:.\1:g
  14. s:^.*$: &:p
  15. };
  16. $a</body> </html>
  17. '