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 '},'
name_txt=""
desc_txt=""
- syn_txt=""
+ usage_txt=""
help_txt=""
perms_txt=""
line_handler=0
L:)
line_handler=1
;;
- S:)
- syn_txt="$value"
+ U:)
+ usage_txt="$value"
;;
H:)
help_txt="${value}"
;;
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
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"
}
echo ".SS \"$name_txt\""
echo "$desc_txt"
echo
- echo "\\fBusage: \\fP$syn_txt"
+ echo "\\fBusage: \\fP$usage_txt"
echo
echo "$help_txt"
echo
com_man()
{
- local n
echo "[$section_name]"
echo
while : ; do
if test $ret -eq 0; then
break
fi
- dump_man #> $txtdir/$n.txt
-# txt2man -t "$n" -r "$r" < $txtdir/$n.txt \
-# | sed -e 1d > $mandir/$n.1
-# man2html $mandir/$n.1 > $htmldir/$n.html
+ dump_man
done
}
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 ' */'