#! /bin/sh - # # The authors of this file have waived all copyright and # related or neighboring rights to the extent permitted by # law as described by the CC0 1.0 Universal Public Domain # Dedication. You should have received a copy of the full # dedication along with this file, typically as a file # named . If not, it may be available at # . # LC_ALL=C readonly LC_ALL export LC_ALL # :r !subset.sh gatbps_barf gatbps_parse_opt gatbps_unknown_opt #----------------------------------------------------------------------- # gatbps_barf #----------------------------------------------------------------------- # # The authors of this section have waived all copyright and # related or neighboring rights to the extent permitted by # law as described by the CC0 1.0 Universal Public Domain # Dedication. You should have received a copy of the full # dedication along with this file, typically as a file # named . If not, it may be available at # . # gatbps_barf() { case $# in 0) printf '%s\n' "$0: Error: Unknown error." >&2 ;; 1) printf '%s\n' "$0: Error: ${1?}" >&2 ;; *) printf '%s' "$0: Error: ${1?}" >&2 shift printf ' %s' "$@" >&2 echo >&2 esac exit 1 } #----------------------------------------------------------------------- # gatbps_parse_opt #----------------------------------------------------------------------- # # The authors of this section have waived all copyright and # related or neighboring rights to the extent permitted by # law as described by the CC0 1.0 Universal Public Domain # Dedication. You should have received a copy of the full # dedication along with this file, typically as a file # named . If not, it may be available at # . # gatbps_parse_opt() { case $# in 0) gatbps_barf \ "gatbps_parse_opt(): At least one