summaryrefslogtreecommitdiff
path: root/flow-part2.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-09 16:55:15 -0400
committerB Stack <bgstack15@gmail.com>2020-06-09 16:55:15 -0400
commit0c80c29d0fde63d9617d5769038963375e698628 (patch)
treeda4141376f5f0437ab5e659ebb4f8bdf69a9e0de /flow-part2.sh
downloadglip-0c80c29d0fde63d9617d5769038963375e698628.tar.gz
glip-0c80c29d0fde63d9617d5769038963375e698628.tar.bz2
glip-0c80c29d0fde63d9617d5769038963375e698628.zip
initial commit
Diffstat (limited to 'flow-part2.sh')
-rwxr-xr-xflow-part2.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/flow-part2.sh b/flow-part2.sh
new file mode 100755
index 0000000..db27d98
--- /dev/null
+++ b/flow-part2.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Filename: flow-part2.sh
+# Startdate: 2020-05-30 16:46
+# Purpose: automate the post-download components of the issue-saving process
+
+OUTDIR=/mnt/public/www/issues
+
+cd /mnt/public/work/devuan
+
+sed -i -r -e 's/\\n/\n/g;' "${OUTDIR}"/*.html
+
+ls -1 "${OUTDIR}"/*.html > output/files-for-timestamps.txt
+./fix-timestamps.py
+
+./fetch-images.sh
+sed -i -f fix-images-in-html.sed "${OUTDIR}"/*.html
+
+mkdir -p /mnt/public/www/issues/css
+./fetch-css.sh
+sed -i -f fix-css-in-html.sed "${OUTDIR}"/*.html
+
+sed -i -f remove-useless.sed "${OUTDIR}"/*.html
+
+./remove-useless.py
+
+sed -i -r -f fix-without-systemd-links.sed "${OUTDIR}"/*.html
bgstack15