X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=man_util.bash;h=c98827866c62ce8b0618b1c348a14b3546ff748b;hp=687acaab5510dab25cc83a2e65b319359d85b3d0;hb=870fcd0379ab096184f42481541d668694da7c83;hpb=f5cf47f2bc4bb76d0d21e2467c5846cade38558f diff --git a/man_util.bash b/man_util.bash index 687acaab..c9882786 100755 --- a/man_util.bash +++ b/man_util.bash @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Receivers, filters, writers are called "modules" in this script +# writers are called "modules" in this script print_modhelp() { local ggo="$1" @@ -39,30 +39,6 @@ make_help() --set-package "para_$1" \ < "$ggo" - if [[ "$target" == 'recv' || "$target" == 'audiod' ]]; then - for module in $RECEIVERS; do - ggo="$GGO_DIR/${module}_recv.ggo" - [[ ! -f "$ggo" ]] && continue - printf "\nOptions for the $module receiver" - print_modhelp "$ggo" - done - fi - if [[ "$target" == 'filter' || "$target" == 'audiod' ]]; then - for module in $FILTERS; do - ggo="$GGO_DIR/${module}_filter.ggo" - [[ ! -f "$ggo" ]] && continue - printf "\nOptions for the $module filter" - print_modhelp "$ggo" - done - fi - if [[ "$target" == 'write' || "$target" == 'audiod' ]]; then - for module in $WRITERS; do - ggo="$GGO_DIR/${module}_write.ggo" - [[ ! -f "$ggo" ]] && continue - printf "\nOptions for the $module writer" - print_modhelp "$ggo" - done - fi } set -u @@ -92,13 +68,9 @@ link="$HELP2MAN_DIR/para_$target" cl_opts= tempfiles= for cl in $COMMAND_LISTS; do - if [[ "$cl" =~ lsg ]]; then - tempfiles+=" $cl.man_util.$$" - sed -e '/^\.SH / s/$/]/1' -e '/^\.SH / s/^\.SH /[/1' "$cl" > "$cl.man_util.$$" - cl_opts+=" --include $cl.man_util.$$" - else - cl_opts+=" --include $cl" - fi + tempfiles+=" $cl.man_util.$$" + sed -e '/^\.SH / s/$/]/1' -e '/^\.SH / s/^\.SH /[/1' "$cl" > "$cl.man_util.$$" + cl_opts+=" --include $cl.man_util.$$" done # Create a symlink para_$target, pointing to this script. This hack is