Improve ZIP index: format in a table, include status, and cross out Withdrawn/Rejected/Obsolete ZIPs.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2019-08-24 10:50:03 +01:00
parent 5a4c216568
commit 9040eed545
2 changed files with 25 additions and 17 deletions

View File

@ -41,19 +41,21 @@ See [COPYING](COPYING) for more information or see http://opensource.org/license
Index of ZIPs
-------------
* [ZIP 0: ZIP Process](zip-0000)
* [ZIP 32: Shielded Hierarchical Deterministic Wallets](zip-0032)
* [ZIP 143: Transaction Signature Verification for Overwinter](zip-0143)
* [ZIP 200: Network Upgrade Mechanism](zip-0200)
* [ZIP 201: Network Peer Management for Overwinter](zip-0201)
* [ZIP 202: Version 3 Transaction Format for Overwinter](zip-0202)
* [ZIP 203: Transaction Expiry](zip-0203)
* [ZIP 205: Deployment of the Sapling Network Upgrade](zip-0205)
* [ZIP 206: Deployment of the Blossom Network Upgrade](zip-0206)
* [ZIP 207: Split Founders' Reward](zip-0207)
* [ZIP 208: Shorter Block Target Spacing](zip-0208)
* [ZIP 209: Prohibit Negative Shielded Value Pool](zip-0209)
* [ZIP 210: Sapling Anchor Deduplication within Transactions](zip-0210)
* [ZIP 243: Transaction Signature Verification for Sapling](zip-0243)
* [ZIP 308: Sprout to Sapling Migration](zip-0308)
* [ZIP guide: {Something Short and To the Point}](zip-guide)
| ZIP | Title | Status |
|-----|-------|--------|
| 0 | [ZIP Process](zip-0000) | Active |
| 32 | [Shielded Hierarchical Deterministic Wallets](zip-0032) | Final |
| 143 | [Transaction Signature Verification for Overwinter](zip-0143) | Final |
| 200 | [Network Upgrade Mechanism](zip-0200) | Final |
| 201 | [Network Peer Management for Overwinter](zip-0201) | Final |
| 202 | [Version 3 Transaction Format for Overwinter](zip-0202) | Final |
| 203 | [Transaction Expiry](zip-0203) | Final |
| 205 | [Deployment of the Sapling Network Upgrade](zip-0205) | Final |
| 206 | [Deployment of the Blossom Network Upgrade](zip-0206) | Draft |
| ~207~ | ~[Split Founders' Reward](zip-0207)~ | Withdrawn |
| 208 | [Shorter Block Target Spacing](zip-0208) | Implemented |
| 209 | [Prohibit Negative Shielded Value Pool](zip-0209) | Final |
| 210 | [Sapling Anchor Deduplication within Transactions](zip-0210) | Draft |
| 243 | [Transaction Signature Verification for Sapling](zip-0243) | Final |
| 308 | [Sprout to Sapling Migration](zip-0308) | Final |
| guide | [{Something Short and To the Point}](zip-guide) | Draft |

View File

@ -5,8 +5,14 @@ cat <<EndOfHeader
Index of ZIPs
-------------
| ZIP | Title | Status |
|-----|-------|--------|
EndOfHeader
for zipfile in *.rst; do
echo "* [`basename $zipfile .rst | sed -r 's|zip-0{0,3}|ZIP |'`: `grep '^\s*Title: ' $zipfile | sed 's|\s*Title: ||'`](`basename $zipfile .rst`)"
if grep -E '^\s*Status:\s*(Withdrawn|Rejected|Obsolete)' $zipfile >/dev/null; then
echo "| ~`basename $zipfile .rst | sed -r 's@zip-0{0,3}@@'`~ | ~[`grep '^\s*Title:' $zipfile | sed 's@\s*Title:\s*@@'`](`basename $zipfile .rst`)~ | `grep '^\s*Status:' $zipfile | sed 's@\s*Status:\s*@@'` |"
else
echo "| `basename $zipfile .rst | sed -r 's@zip-0{0,3}@@'` | [`grep '^\s*Title:' $zipfile | sed 's@\s*Title:\s*@@'`](`basename $zipfile .rst`) | `grep '^\s*Status:' $zipfile | sed 's@\s*Status:\s*@@'` |"
fi
done