summaryrefslogtreecommitdiff
path: root/tools/html-to-atom.sh
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2018-05-01 06:10:19 +0300
committerdefanor <defanor@uberspace.net>2018-05-01 06:10:19 +0300
commit56c57f94738efab8b0bf83dc68480931a2ceee00 (patch)
tree30663a142eedd52670a68e26885cff6348a45d3f /tools/html-to-atom.sh
parente0b97e0e2168c4d2b9cf60b16e81591f912c2f4a (diff)
Focus on source XML manipulation, introduce indexes
Instead of XHTML or Atom, so resulting files get generated out of custom XML structures now. This was needed to get indexes that won't depend on Atom (and to avoid the duplication). Now indexes can be included with something like the following: <notes xmlns="" number="5" src="../build/notes-by-modification-date.xml" />
Diffstat (limited to 'tools/html-to-atom.sh')
-rwxr-xr-xtools/html-to-atom.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/html-to-atom.sh b/tools/html-to-atom.sh
deleted file mode 100755
index 3bebf45..0000000
--- a/tools/html-to-atom.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# Composes an atom feed out of XHTML files.
-
-BASEDIR=~/homepage
-TOOLS="${BASEDIR}/tools"
-SOURCES="${BASEDIR}/src"
-ATOM="${BASEDIR}/atom.xml"
-NOTES="${BASEDIR}/notes"
-
-(echo '<?xml version="1.0" encoding="UTF-8"?>' &&
- echo '<list>' &&
- find "${NOTES}" -name '*.xhtml' |
- # grep -Ev "^(${TOOLS}|${SOURCES}).*" |
- sed -e "sS^${BASEDIR}/\(.*\)S<entry name=\"\\1\" />S" &&
- echo '</list>') |
- xsltproc "${TOOLS}/html-to-atom-dump.xsl" - |
- xsltproc "${TOOLS}/atom-sort.xsl" - |
- xsltproc "${TOOLS}/atom-limit.xsl" - |
- xmllint --format --nsclean - > "${ATOM}"