7 echo ".name = \"$name_txt\","
8 if test $line_handler -eq 0; then
9 echo ".handler = com_$name_txt,"
11 echo ".line_handler = com_$name_txt,"
13 if test -n "$perms_txt"; then
14 echo ".perms = $perms_txt,"
16 echo ".description = \"$desc_txt\","
17 echo ".synopsis = \"$syn_txt\","
19 echo "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g'
35 while read key value; do
58 if test "$line" = "---"; then
69 if test -n "$name_txt" -a -n "$desc_txt" -a -n "$syn_txt" \
70 -a -n "$help_txt"; then
74 if test -z "$name_txt" -a -z "$desc_txt" -a -z "$syn_txt" \
75 -a -z "$help_txt"; then
92 printf "\t$name_txt - $desc_txt\n"
97 if test -n "$perms_txt"; then
99 if test "$perms_txt" = "0"; then
102 printf "\t$perms_txt\n"
111 local cn="$(grep ^codename Makefile.in)"
112 local ver="$(grep ^AC_INIT configure.ac \
117 echo "r=paraslash-$ver (cn: $cn)"
120 local mandir=man/man1
123 mkdir -p $txtdir $mandir $htmldir || exit 1
126 if test $ret -lt 0; then
129 if test $ret -eq 0; then
133 echo "pfx: $pfx, name: $n"
134 dump_man > $txtdir/$n.txt
135 txt2man -t "$n" -r "$r" < $txtdir/$n.txt \
136 | sed -e 1d > $mandir/$n.1
137 man2html $mandir/$n.1 > $htmldir/$n.html
145 if test $ret -lt 0; then
148 if test $ret -eq 0; then
157 if test $line_handler -eq 0; then
158 echo "static int com_$name_txt(int, int, char **);"
160 echo "static int com_$name_txt(int, char *);"
168 if test $ret -lt 0; then
171 if test $ret -eq 0; then