-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdrgen: Add a utility for extracting XDR from RFCs
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>
- Loading branch information
Chuck Lever
committed
Nov 19, 2024
1 parent
bb4f07f
commit a32442f
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
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,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?^ *///$??' |