X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command_util.sh;h=326bb032abfa827b21ea4d09f524cc7266938680;hp=5119f58bc7f264aff2cd17f965bb1e2cfd1cbf47;hb=1446f99e3adc59d868726382a2ac7cec105372a7;hpb=3e5fc3eb04d048d7b30c857e12107799beb39c31 diff --git a/command_util.sh b/command_util.sh index 5119f58b..326bb032 100755 --- a/command_util.sh +++ b/command_util.sh @@ -15,7 +15,7 @@ dump_array_member() echo ".perms = $perms_txt," fi echo ".description = \"$desc_txt\"," - echo ".synopsis = \"$syn_txt\"," + echo ".usage = \"$usage_txt\"," echo ".help = " echo "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' echo '},' @@ -68,7 +68,7 @@ read_one_command() name_txt="" desc_txt="" - syn_txt="" + usage_txt="" help_txt="" perms_txt="" line_handler=0 @@ -90,8 +90,8 @@ read_one_command() L:) line_handler=1 ;; - S:) - syn_txt="$value" + U:) + usage_txt="$value" ;; H:) help_txt="${value}" @@ -107,12 +107,12 @@ ${line# }" ;; esac done - if test -n "$name_txt" -a -n "$desc_txt" -a -n "$syn_txt" \ + if test -n "$name_txt" -a -n "$desc_txt" -a -n "$usage_txt" \ -a -n "$help_txt"; then ret=1 return fi - if test -z "$name_txt" -a -z "$desc_txt" -a -z "$syn_txt" \ + if test -z "$name_txt" -a -z "$desc_txt" -a -z "$usage_txt" \ -a -z "$help_txt"; then ret=0 return @@ -122,7 +122,7 @@ ${line# }" echo "!ERROR!" echo "N: $name_txt" echo "D: $desc_txt" - echo "S: $syn_txt" + echo "S: $usage_txt" echo "P: $perms_txt" echo "H: $help_txt" } @@ -132,7 +132,7 @@ dump_man() echo ".SS \"$name_txt\"" echo "$desc_txt" echo - echo "\\fBusage: \\fP$syn_txt" + echo "\\fBusage: \\fP$usage_txt" echo echo "$help_txt" echo @@ -195,7 +195,7 @@ dump_proto() echo ' * \param cmdline the full command line' fi echo ' * ' - echo " * synopsis: $syn_txt" + echo " * usage: $usage_txt" echo ' * ' echo "$help_txt" | sed -e 's/^/ * /g' echo ' */'