a/command_util.sh: Convert template members also in the short description.
authorAndre Noll <maan@systemlinux.org>
Sun, 16 Dec 2007 18:34:56 +0000 (19:34 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 16 Dec 2007 18:34:56 +0000 (19:34 +0100)
command_util.sh

index 3c2d789..62ad966 100755 (executable)
@@ -148,7 +148,7 @@ dump_man()
                        local t_name_txt=$(echo $name_txt | $sed_cmd)
                        echo ".SS \"$t_name_txt\""
                done
                        local t_name_txt=$(echo $name_txt | $sed_cmd)
                        echo ".SS \"$t_name_txt\""
                done
-               echo "$desc_txt"
+               echo "$desc_txt" | sed -e "s/@member@/{$(echo $template_members | sed -e 's/ / | /g')}/g"
                echo
                echo "\\fBUsage: \\fP"
                echo
                echo
                echo "\\fBUsage: \\fP"
                echo