forked from lwg/issues
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for verifying source code changes
Also use the new script in the check-pr.yml workflow.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
old=$(mktemp -d ./mailing.old.XXXXXX) | ||
new=$(mktemp -d ./mailing.new.XXXXXX) | ||
echo Building lists at HEAD | ||
make clean | ||
make lists -j4 | ||
sed -i 's/Revised ....-..-.. at ..:..:.. UTC/Revised .../' mailing/*.html | ||
mv mailing $new | ||
git checkout ${1-origin/master} -- src | ||
echo Building lists with code from `git rev-parse origin/master` | ||
make clean | ||
make lists -j4 | ||
git checkout HEAD -- src | ||
sed -i 's/Revised ....-..-.. at ..:..:.. UTC/Revised .../' mailing/*.html | ||
mv mailing $old | ||
diff -u -r --color=${2:-auto} $old $new || exit | ||
rm -r $old $new | ||
echo No changes to HTML files |