summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLiu Pengpeng <liupppppp@gmail.com>2020-09-03 01:55:14 +0800
committerGitHub <noreply@github.com>2020-09-03 01:55:14 +0800
commit7e8b5dfc304c0e3cd646b54bc49e23fad692d11e (patch)
tree0f297ac5ec58209b24f82a9eb4d8d3451d512900 /scripts
parent13dccfe663206cec416e404a75c5f59c9f2919d7 (diff)
parentbdb297a7c847c23b96ff1dbe7bc91586ec8b59c5 (diff)
Merge branch 'master' into master
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildtable.pl2
-rwxr-xr-xscripts/link-format-chk.sh23
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/buildtable.pl b/scripts/buildtable.pl
index 144ede6..1edd8c0 100755
--- a/scripts/buildtable.pl
+++ b/scripts/buildtable.pl
@@ -34,6 +34,7 @@ my %MiscField = (
'Discussions-To' => undef,
'Post-History' => undef,
'Replaces' => undef,
+ 'Requires' => undef,
'Superseded-By' => undef,
);
@@ -53,6 +54,7 @@ my %ValidStatus = (
Final => "background-color: #cfffcf",
Active => "background-color: #cfffcf",
Replaced => "background-color: #ffcfcf",
+ Obsolete => "background-color: #ffcfcf",
);
my %ValidType = (
'Standards Track' => 'Standard',
diff --git a/scripts/link-format-chk.sh b/scripts/link-format-chk.sh
new file mode 100755
index 0000000..e3f0f6d
--- /dev/null
+++ b/scripts/link-format-chk.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2019 The Bitcoin Core developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
+#
+# Check wrong mediawiki link format
+
+ECODE=0
+FILES=""
+for fname in $(git diff --name-only HEAD $(git merge-base HEAD master)); do
+ if [[ $fname == *.mediawiki ]]; then
+ GRES=$(grep -n '](http' $fname)
+ if [ "$GRES" != "" ]; then
+ if [ $ECODE -eq 0 ]; then
+ >&2 echo "Github Mediawiki format writes link as [URL text], not as [text](url):"
+ fi
+ ECODE=1
+ echo "- $fname:$GRES"
+ fi
+ fi
+done
+exit $ECODE