mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

For convenience, copy the XDR extraction script from RFC Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
11 lines
271 B
Bash
Executable file
11 lines
271 B
Bash
Executable file
#! /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?^ *///$??'
|