11cb0ef41Sopenharmony_ciset -ex 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciif [ ! -d "webidl2.js" ]; then 41cb0ef41Sopenharmony_ci git clone https://github.com/w3c/webidl2.js.git 51cb0ef41Sopenharmony_cifi 61cb0ef41Sopenharmony_cicd webidl2.js 71cb0ef41Sopenharmony_cinpm install 81cb0ef41Sopenharmony_cinpm run build-debug 91cb0ef41Sopenharmony_ciHASH=$(git rev-parse HEAD) 101cb0ef41Sopenharmony_cicd .. 111cb0ef41Sopenharmony_cicp webidl2.js/dist/webidl2.js lib/ 121cb0ef41Sopenharmony_ciecho "Currently using webidl2.js@${HASH}." > lib/VERSION.md 13