summaryrefslogtreecommitdiff
path: root/references/convert-and-slurp-attachments.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-07-09 21:21:02 +0000
committerRob Austein <sra@hactrn.net>2021-07-09 21:21:02 +0000
commitd5b501c4046fbdc2354607c12f9f8230159e6135 (patch)
tree10d5c7a1260aca6b1b67b9e971854ee57cc15fd5 /references/convert-and-slurp-attachments.sh
parent78b3ed35c726cf8ef0ec4c4e7753e6f4775b9001 (diff)
Incorporate project-independent stuff I did for IETF NOC
Diffstat (limited to 'references/convert-and-slurp-attachments.sh')
-rwxr-xr-xreferences/convert-and-slurp-attachments.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/references/convert-and-slurp-attachments.sh b/references/convert-and-slurp-attachments.sh
deleted file mode 100755
index ce7f34d..0000000
--- a/references/convert-and-slurp-attachments.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -
-
-ls | fgrep -v . |
-while read page
-do
- base="https://trac.rpki.net"
- path="/wiki/$(echo $page | sed s=%2F=/=g)"
-
- # Fetch the Wiki page, extract the useful portion of the HTML, convert that into Markdown
- curl "${base}${path}" |
- xsltproc --html extract-wiki-content.xsl - |
- html2markdown --no-skip-internal-links --reference-links >"$page.md"
-
- # Fetch a ZIP file containing any attachments, clean up if result is empty or broken
- curl "${base}/zip-attachment${path}/" >"$page.zip"
- zipinfo "$page.zip" >/dev/null 2>&1 || rm -f "$page.zip"
-
-done