mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 22:12:10 +00:00
d73ee7ebf5
- Make xhtml and html alternates the same (we're polygot), cutting static-compression time in half - Make axe-ff run on local files, reducing some overhead.
12 lines
353 B
Bash
12 lines
353 B
Bash
#!/bin/sh
|
|
# Take a single polygot (X)HTML file and make a .xhtml copy of it. Do
|
|
# the same for static-compressed versions.
|
|
|
|
set -e -u
|
|
|
|
html_file="$1"
|
|
xhtml_file="${html_file%*.html}.xhtml"
|
|
|
|
cp -p "$html_file" "$xhtml_file"
|
|
[ -f "$html_file.gz" ] && cp -p "$html_file.gz" "$xhtml_file.gz"
|
|
[ -f "$html_file.br" ] && cp -p "$html_file.br" "$xhtml_file.br"
|