diff options
author | Joas Schilling <coding@schilljs.com> | 2019-07-12 12:29:46 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-12 13:00:32 +0300 |
commit | 1140f9ed4eaf06b0ec47a867b05a9a5fa0cc8b30 (patch) | |
tree | b579259e712065b3cbbd039ee243e79feb02c873 /check-simplewebrtc-bundle.sh | |
parent | 0f8e008d1259a5fa406e4275531e53a82bee1871 (diff) |
Check if SimpleWebRTC is bundled correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'check-simplewebrtc-bundle.sh')
-rwxr-xr-x | check-simplewebrtc-bundle.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/check-simplewebrtc-bundle.sh b/check-simplewebrtc-bundle.sh new file mode 100755 index 000000000..0bd68b840 --- /dev/null +++ b/check-simplewebrtc-bundle.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cp "js/simplewebrtc/bundled.js" "js/simplewebrtc/bundled.js.back" + +# Rebuild the bundled SimpleWebRTC +set -e +make bundle-simplewebrtc + +echo "Comparing js/simplewebrtc/bundled.js to the commited version" +if ! diff -q "js/simplewebrtc/bundled.js" "js/simplewebrtc/bundled.js.back" &>/dev/null +then + echo "js/simplewebrtc/bundled.js is NOT up-to-date! Please send the proper production build within the pull request" + diff "js/simplewebrtc/bundled.js" "js/simplewebrtc/bundled.js.back" + exit 2 +fi + +rm "js/simplewebrtc/bundled.js.back" +echo "SimpleWebRTC bundle is up-to-date" |