X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command_util.sh;h=8f82b39318103dd73b44315ddaa3548912320bbc;hp=f388b2cfb152db7cf34e0b2f84313ba26a209903;hb=c387b216b5fd3c944053e1bba024815719e9a0d9;hpb=5c07b5c17b25240495a0acee24ca6b03c8d81e72 diff --git a/command_util.sh b/command_util.sh index f388b2cf..8f82b393 100755 --- a/command_util.sh +++ b/command_util.sh @@ -200,14 +200,6 @@ dump_proto() echo '/**' echo " * $desc_txt" echo ' *' - if [[ "$system_includes" =~ openssl/rc4.h ]]; then - echo ' * \param rc4c The rc4 crypt context.' - else - echo ' * \param fd The file descriptor to send output to.' - fi - echo ' * \param argc The number of arguments.' - echo ' * \param argv The argument vector.' - echo ' * ' echo " * Usage: $usage_txt" echo ' * ' echo "$help_txt" | sed -e 's/^/ * /g' @@ -229,6 +221,7 @@ dump_proto() dump_array_member() { + local TAB=' ' echo '{' echo ".name = \"$name_txt\"," echo ".handler = com_$name_txt," @@ -238,7 +231,8 @@ dump_array_member() echo ".description = \"$desc_txt\"," echo ".usage = \"$usage_txt\"," echo ".help = " - printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' + printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' \ + -e "s/$TAB/\\\t/g" echo '},' }