2013-11-16 15:54:49 -05:00

13 lines
486 B
Bash
Executable File

#! /bin/sh
nroff -t -ms rfc-protobuf-sctp.ms |
perl -e '
undef $/; # Read whole files in a single gulp.
while (<>) { # Read the entire input file.
s/FORMFEED(\[Page\s+\d+\])\s+/ \1\n\f\n/sg;
s/\f\n$//; # Want no formfeed at end?
print; # Print the resultant file.
}' > rfc-protobuf-sctp.txt
groff -t -ms rfc-protobuf-sctp.ms > rfc-protobuf-sctp.ps