source: draft-ietf-httpbis/latest/common-abnf.sh @ 2667

Last change on this file since 2667 was 2667, checked in by julian.reschke@…, 6 years ago

shorten "defined in" to "see" to avoid overlong lines in artwork (#553)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 550 bytes
Line 
1#!/bin/sh
2# combine into a single ABNF
3
4bap=../../abnfparser/bap
5
6[ $# -ne 0 ] || ( echo "combine-abnf.sh file..." >&2 ; exit 2 )
7
8echo "; the ABNF below was extracted from the IETF HTTPbis WG Internet Drafts"
9echo "; please see <http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging>"
10echo "; for copyright information."
11echo ""
12
13for i in "$@"
14do
15  $bap/bap -i $bap/core.abnf -n "$i" 
16done | \
17        fgrep -v ", defined in [Part" | \
18        fgrep -v ", defined in [RFC723" | \
19        fgrep -v ", see [RFC723" | \
20        sort | uniq | \
21        $bap/bap -k -i $bap/core.abnf
Note: See TracBrowser for help on using the repository browser.