summaryrefslogtreecommitdiff
path: root/fetch-css.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-16 13:40:39 -0400
committerB Stack <bgstack15@gmail.com>2020-06-16 13:40:39 -0400
commit0ca931489f98b65e1025a4c4f00ae9eb8484dc27 (patch)
tree231f9fa86e40a62ef59ca0cc1ba81d52086b3597 /fetch-css.sh
parentinitial commit (diff)
downloadglip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.tar.gz
glip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.tar.bz2
glip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.zip
add minor fixes and major image fixes
perform better unicode removal/conversion fix image retrieval, including svg and minor graphics assets remove even more html elements not necessary for archival display
Diffstat (limited to 'fetch-css.sh')
-rwxr-xr-xfetch-css.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetch-css.sh b/fetch-css.sh
index 06718c2..28a6ac9 100755
--- a/fetch-css.sh
+++ b/fetch-css.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Startdate: 2020-05-29 20:18
-INDIR=/mnt/public/www/issues
+INDIR=/mnt/public/www/gitlab-issues
INGLOB=*.html
SEDSCRIPT=/mnt/public/work/devuan/fix-css-in-html.sed
@@ -14,6 +14,7 @@ INSERVER=https://git.devuan.org
cd "${INDIR}"
+#orig_css="$( sed -n -r -e 's/^.*rel="stylesheet".*(href="[^"]+\.css").*/\1/p' ${INGLOB} | awk -F'"' '!x[$2]++{print $2}' )"
orig_css="$( sed -n -r -e 's/^.*<link.*(href="[^"]+\.css").*/\1/p' ${INGLOB} | awk -F'"' '!x[$2]++{print $2}' )"
cat /dev/null > "${SEDSCRIPT}"
bgstack15