-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revive legacy JS API and restructure legacy spec directory (#303)
This adds `core` and `js-api` directory in `document/legacy/exceptions`, moves all core spec files into `core/`, and restores the deleted legacy JS API files in `js-api/`. The core legacy spec only contains the EH instructions, which is easier to view, but it is hard to precisely carve out the modified part from the JS API file, so this adds the whole file for the legacy spec.
- Loading branch information
Showing
21 changed files
with
1,540 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
BUILDDIR = _build | ||
STATICDIR = _static | ||
DOWNLOADDIR = _download | ||
NAME = WebAssembly | ||
|
||
.PHONY: all | ||
all: | ||
mkdir -p $(BUILDDIR)/html | ||
bikeshed spec index.bs $(BUILDDIR)/html/index.html | ||
@echo "Build finished. The HTML pages are in `pwd`/$(BUILDDIR)/html." | ||
|
||
.PHONY: publish | ||
publish: | ||
(cd ..; make publish-js-api) | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf $(BUILDDIR) | ||
rm -rf $(STATICDIR) | ||
|
||
.PHONY: diff | ||
diff: all | ||
@echo "Downloading the old single-file html spec..." | ||
curl `grep "^TR" index.bs | cut -d' ' -f2` -o $(BUILDDIR)/html/old.html | ||
@echo "Done." | ||
@echo "Diffing new against old..." | ||
perl ../util/htmldiff.pl $(BUILDDIR)/html/old.html $(BUILDDIR)/html/index.html $(BUILDDIR)/html/diff.html | ||
@echo "Done. The diff is at $(BUILDDIR)/html/diff.html" | ||
|
||
.PHONY: WD-tar | ||
WD-tar: | ||
bikeshed echidna --just-tar index.bs $(BUILDDIR)/html/index.html | ||
mv test.tar $(BUILDDIR)/WD.tar | ||
@echo "Built $(BUILDDIR)/WD.tar." | ||
|
||
.PHONY: WD-echidna | ||
WD-echidna: | ||
@if [ -z $(W3C_USERNAME) ] || \ | ||
[ -z $(W3C_PASSWORD) ] || \ | ||
[ -z $(DECISION_URL) ] ; then \ | ||
echo "Must provide W3C_USERNAME, W3C_PASSWORD, and DECISION_URL environment variables"; \ | ||
exit 1; \ | ||
fi | ||
bikeshed echidna index.bs --u $(W3C_USERNAME) --p $(W3C_PASSWORD) --d $(DECISION_URL) |
Oops, something went wrong.