summaryrefslogtreecommitdiff
path: root/tools/net/sunrpc/extract.sh
blob: f944066f25bcc830eededbcdf8ce82e6daa2405f (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# Extract an RPC protocol specification from an RFC document.
# The version of this script comes from RFC 8166.
#
# Usage:
#  $ extract.sh < rfcNNNN.txt > protocol.x
#

grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??'