diff options
author | defanor <defanor@uberspace.net> | 2018-04-30 08:39:10 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2018-04-30 08:40:35 +0300 |
commit | e0b97e0e2168c4d2b9cf60b16e81591f912c2f4a (patch) | |
tree | be9cddde0b1593262879d064a557794f65c72f87 /tools | |
parent | 8c07ed0d1e8422680cdd4899f3c391df4efc6062 (diff) |
Only include notes into the feed
Index updates wouldn't be of much use.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/html-to-atom.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/html-to-atom.sh b/tools/html-to-atom.sh index 6fb2e01..3bebf45 100755 --- a/tools/html-to-atom.sh +++ b/tools/html-to-atom.sh @@ -6,11 +6,12 @@ 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 "${BASEDIR}" -name '*.xhtml' | - grep -Ev "^(${TOOLS}|${SOURCES}).*" | + 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" - | |