summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/build.sh
blob: a631268224f84233962ca3748d631c55e8afb383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
set -ex

if [ ! -d "webidl2.js" ]; then
  git clone https://github.com/w3c/webidl2.js.git
fi
cd webidl2.js
npm install
npm run build-debug
HASH=$(git rev-parse HEAD)
cd ..
cp webidl2.js/dist/webidl2.js lib/
echo "Currently using webidl2.js@${HASH}." > lib/VERSION.md