Anton Shestakov <av6@dwimlabs.net>, Sat, 03 Dec 2016 15:17:36 +0800
coffee: update compiler to 1.11.1, recompile
contrib/updatesri.sh
Permissions: -rwxr-xr-x
( egrep -oh
'https://[^"]+\.js' "$@" || true ) | sort -u
| while read url
; do hash=$(curl -fsS
"$url" | openssl dgst -sha384 -binary
| openssl base64 -A
) sed -i
"\|$url| c\\ <script src=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\"></script>" "$@"( egrep -oh
'https://[^"]+\.css' "$@" || true ) | sort -u
| while read url
; do hash=$(curl -fsS
"$url" | openssl dgst -sha384 -binary
| openssl base64 -A
) sed -i
"\|$url| c\\ <link rel=\"stylesheet\" href=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\">" "$@"