#!/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