-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta: Commit Snapshot and Review Draft support
See whatwg/meta#92 for details. And whatwg/html-build#151 and whatwg/wattsi#70 for changes that are needed as well.
- Loading branch information
Showing
6 changed files
with
167 additions
and
101 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
default: | ||
@echo "Please see CONTRIBUTING.md for instructions on building HTML." | ||
|
||
review: source | ||
@./review-draft.sh |
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,23 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o nounset | ||
|
||
# This is based on a script named review.sh over at | ||
# https://github.com/whatwg/whatwg.org/tree/master/resources.whatwg.org/build | ||
# | ||
# Please see https://github.com/whatwg/meta/blob/master/MAINTAINERS.md for information on creating | ||
# and announcing Review Drafts. | ||
|
||
INPUT="source" | ||
|
||
mkdir -p "review-drafts" | ||
REVIEW_DRAFT="review-drafts/$(date +'%Y-%m').wattsi" | ||
|
||
# Note that %B in date is locale-specific. Let's hope for English. | ||
sed -e 's/^ <title w-nodev>HTML Standard<\/title>$/ <title w-nodev>HTML Standard Review Draft '"$(date +'%B %Y')"'<\/title>/' \ | ||
-e 's/^ <h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft — Published <span class="pubdate">\[DATE: 01 Jan 1901\]<\/span><\/h2>$/ <h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft \— Published '"$(date +'%d %B %Y')"'<\/h2>/' \ | ||
-e 's/<span class="pubyear">\[DATE: 1901\]<\/span>/'"$(date +'%Y')"'/' \ | ||
< "$INPUT" > "$REVIEW_DRAFT" | ||
echo "Created Review Draft at $REVIEW_DRAFT" | ||
echo "Please verify that only three lines changed relative to $INPUT:" | ||
diff -up "$INPUT" "$REVIEW_DRAFT" || exit 0 |
Oops, something went wrong.