-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78c7918
commit 414c5bf
Showing
21 changed files
with
896 additions
and
1,712 deletions.
There are no files selected for viewing
Submodule api-tools
updated
from a93d1b to 9b9a5b
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
temp/ | ||
diff/ | ||
output/ | ||
links/ | ||
references/ | ||
updated-references/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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,53 @@ | ||
#!/bin/bash -e | ||
|
||
PLATFORM=$1 | ||
OUTPUT_DIR=$2 | ||
FORMAT=$3 | ||
HTML=$4 | ||
MARKDOWN=$5 | ||
OUTPUT=$6 | ||
|
||
if test -n "$7"; then | ||
shift 6 | ||
echo "Too many arguments: $*" | ||
exit 1 | ||
fi | ||
|
||
if [[ $FORMAT == html ]]; then | ||
echo -n "<li>" >> "$OUTPUT" | ||
|
||
if ! test -f "$OUTPUT_DIR/$HTML"; then | ||
echo -n "<s>$PLATFORM</s> (no diff detected)" >> "$OUTPUT" | ||
elif ! test -s "$OUTPUT_DIR/$HTML"; then | ||
echo -n "<s>$PLATFORM</s> (empty diff detected)" >> "$OUTPUT" | ||
elif grep "BreakingChangesDetected" "$OUTPUT_DIR/$HTML" >/dev/null 2>&1; then | ||
echo -n "$PLATFORM: <a href='$HTML'>html</a> <a href='$MARKDOWN'>markdown</a> ($HTML_BREAKING_CHANGES_MESSAGE)" >> "$OUTPUT" | ||
elif ! grep "No change detected" "$OUTPUT_DIR/$HTML" >/dev/null 2>&1; then | ||
echo -n "$PLATFORM: <a href='$HTML'>html</a> <a href='$MARKDOWN'>markdown</a> ($HTML_NO_BREAKING_CHANGES_MESSAGE)" >> "$OUTPUT" | ||
else | ||
echo -n "<s>$PLATFORM</s> (no change detected)" >> "$OUTPUT" | ||
fi | ||
|
||
echo "</li>" >> "$OUTPUT" | ||
|
||
elif [[ $FORMAT == markdown ]]; then | ||
echo -n "* " >> "$OUTPUT" | ||
|
||
if ! test -f "$OUTPUT_DIR/$HTML"; then | ||
echo -n "~$PLATFORM~: (no diff detected)" >> "$OUTPUT" | ||
elif ! test -s "$OUTPUT_DIR/$HTML"; then | ||
echo -n "~$PLATFORM~: (empty diff detected)" >> "$OUTPUT" | ||
elif grep "BreakingChangesDetected" "$OUTPUT_DIR/$HTML" >/dev/null 2>&1; then | ||
echo -n "$PLATFORM: [vsdrops]($HTML) [gist]($MARKDOWN) ($MARKDOWN_BREAKING_CHANGES_MESSAGE)" >> "$OUTPUT" | ||
elif ! grep "No change detected" "$OUTPUT_DIR/$HTML" >/dev/null 2>&1; then | ||
echo -n "$PLATFORM: [vsdrops]($HTML) [gist]($MARKDOWN) ($MARKDOWN_NO_BREAKING_CHANGES_MESSAGE)" >> "$OUTPUT" | ||
else | ||
echo -n "~$PLATFORM~ (no change detected)" >> "$OUTPUT" | ||
fi | ||
|
||
echo "" >> "$OUTPUT" | ||
else | ||
echo "Unknown output format: $FORMAT" | ||
exit 1 | ||
fi | ||
|
Oops, something went wrong.