-# pick out interesting bits from the definitions file
-sed -n '/^-/s/^.*--\([[^\= @<:@]]*\).*$/\1/p' options.def >options
-sed -n '/^-/{
- s/[[^=]]*\(=[[^@:>@ ]]*\).*$/\1/
- s/^[[^=]].*//
- s/^=//
- p
-}' options.def >argnames
-
-AS_ECHO(["-"]) | sed -n '1s/^-.*//p
-1,/^-/d
-t clear
-:clear
-s/^-.*//p
-t
-s/^#.*//
-s/^ *//
-t next
-:next
-N
-s/\n-.*//
-t done
-s/\n#.*//
-s/\n */\n/g
-t next
-:done
-s/"/\\\\"/g
-s/[[^\n]][[^\n]]*/\\"&\\"/g
-s/^\n*//
-s/\n*$//
-s/\n\n*/ /g
-p
-' options.def - >helptext
-
-exec 3<options 4<argnames 5<helptext 6>expout
-while read opt <&3 && read arg <&4 && read help <&5; do
- if test ${arg:+y}; then
- AS_ECHO(["--$opt=$arg"]) >&6
- else
- AS_ECHO(["--$opt"]) >&6
- fi
- eval "set x $help"; shift
- for arg
- do
- AS_ECHO(["$arg"]) >&6
- done
-done
-exec 3<&- 4<&- 5<&- 6>&-