285:30fd0d2a81ce
Anton Shestakov <av6@dwimlabs.net>, Sat, 16 Sep 2017 22:29:17 +0800
Make: use npm update for devel target package.json says we want coffee-script >= 1.6.1, so that's what `make devel` should install (the newest version): since .js source is tracked, there's no risk of running into breaking changes in coffee-script outside of test environment. But running into such changes during tests is OK and even potentially desirable.

previous change 282:72b0672a98f7

contrib/updatesri.sh

Permissions: -rwxr-xr-x

Other formats: Feeds:
#!/bin/bash
set -euo pipefail
( egrep -oh 'https://[^"]+\.js' "$@" || true ) | sort -u | while read -r 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>" "$@"
done
( egrep -oh 'https://[^"]+\.css' "$@" || true ) | sort -u | while read -r 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\">" "$@"
done