#!/bin/sh # combine into a single ABNF bap=../../abnfparser/bap [ $# -ne 0 ] || ( echo "combine-abnf.sh file..." >&2 ; exit 2 ) echo "; the ABNF below was extracted from the IETF HTTPbis WG Internet Drafts" echo "; please see " echo "; for copyright information." echo "" for i in "$@" do $bap/bap -i $bap/core.abnf -n "$i" done | tee foobar | \ fgrep -v ", defined in [Part" | \ sort | uniq | \ $bap/bap -k -i $bap/core.abnf