libre.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --- arch-wiki-lite.orig/wiki_lite.py 2014-07-11 15:37:52.000000000 -0500
  2. +++ arch-wiki-lite/wiki_lite.py 2016-06-06 08:00:56.369924650 -0500
  3. @@ -8,7 +8,7 @@
  4. This should be using a real html parser,
  5. but input is safe/known and there is a lot to parse.
  6. """
  7. -wiki_path = '/usr/share/doc/arch-wiki/html/'
  8. +wiki_path = '/usr/share/doc/parabola-wiki/html/'
  9. dump_path = './wiki/'
  10. # not a complete list, but does cover the current wiki
  11. @@ -143,7 +143,7 @@
  12. os.makedirs(dump_path)
  13. toc = generate_toc()
  14. toc_file = open(dump_path + 'index', 'w')
  15. - txt_file = gzip.open(dump_path + 'arch-wiki.txt.gz', 'w')
  16. + txt_file = gzip.open(dump_path + 'parabola-wiki.txt.gz', 'w')
  17. escape_regex = re.compile('&#x?[0-9A-Fa-f]+;')
  18. for path in all_html_paths(wiki_path):
  19. if path == 'index.html':
  20. --- arch-wiki-lite.orig/wiki-search 2016-04-30 10:44:25.000000000 -0500
  21. +++ arch-wiki-lite/wiki-search 2016-06-06 08:05:30.488986591 -0500
  22. @@ -3,11 +3,11 @@
  23. # todo, ewiki-search (extended regex)
  24. # and/or multiword (matches + 1, product, divided by word count)
  25. -wiki_path="/usr/share/doc/arch-wiki/text"
  26. +wiki_path="/usr/share/doc/parabola-wiki/text"
  27. #wiki_path="./wiki"
  28. dialogrc_path="/etc/dialog.d/wiki-search.dialog.rc"
  29. -html_path="/usr/share/doc/arch-wiki/html"
  30. -wikiball="$wiki_path/arch-wiki.txt.gz"
  31. +html_path="/usr/share/doc/parabola-wiki/html"
  32. +wikiball="$wiki_path/parabola-wiki.txt.gz"
  33. tmp="/tmp/.wiki-search.${USER}.tmp"
  34. COLOR1='\e[1;32m'
  35. COLOR5='\e[1;34m'
  36. @@ -126,7 +126,7 @@
  37. ;;
  38. -h|--help|'')
  39. echo "$(basename $0)"
  40. - echo "Search and view your local copy of the Arch wiki."
  41. + echo "Search and view your local copy of the Parabola wiki."
  42. echo ""
  43. echo "Search with '$(basename $0) [query]' where query is a regex"
  44. echo "or a list of terms to match individually."
  45. --- arch-wiki-lite.orig/wiki-search-html 2016-04-30 10:20:28.000000000 -0500
  46. +++ arch-wiki-lite/wiki-search-html 2016-06-06 08:06:29.153749809 -0500
  47. @@ -7,7 +7,7 @@
  48. source $wikisearch --source
  49. if [[ ! -d "$html_path" ]]; then
  50. - echo "pacman -S arch-wiki-docs"
  51. + echo "pacman -S parabola-wiki-docs"
  52. exit 1
  53. fi