mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 21:03:53 +00:00
Estimated hours taken: 0.5 Fix a bug where doc/generate_mdb_doc was putting the documentation for the interactive query commands in the category "interactive" whereas doc/mdb_categories was expecting this category to be called "queries". util/info_to_mdb.c: Print error messages to stderr rather than stdout. Document the first argument as being a category name (the name of an mdb help category) rather than a section name. doc/generate_mdb_doc: Avoid the assumption that the category name is the same as the section name; that is still the default, but it now sets the category for the "interactive" section to "queries". Invoke info_to_mdb with the category name rather than the section name. trace/mercury_trace_internal.c: Update the category names in the pseudo-automatically-generated command list to reflect the above change. (Also improve an error message slightly.)
28 lines
975 B
Bash
Executable File
28 lines
975 B
Bash
Executable File
#!/bin/sh
|
|
#---------------------------------------------------------------------------#
|
|
# Copyright (C) 1998-1999 The University of Melbourne.
|
|
# This file may only be copied under the terms of the GNU General
|
|
# Public License - see the file COPYING in the Mercury distribution.
|
|
#---------------------------------------------------------------------------#
|
|
|
|
# the info menu items that get us to the chapter on debugger commands
|
|
cat mdb_categories > mdb_doc
|
|
|
|
tmp="mdb_doc_tmp.$$"
|
|
trap '/bin/rm -f $tmp' 0 1 2 3 15
|
|
|
|
info -f ./mercury_user_guide.info -o $tmp -n "Mercury debugger concepts"
|
|
../util/info_to_mdb concepts $tmp >> mdb_doc
|
|
|
|
debug_cmd_path="debug debugger"
|
|
for section in interactive forward backward browsing breakpoint \
|
|
parameter help exp developer misc
|
|
do
|
|
case $section in
|
|
interactive) category=queries ;;
|
|
*) category=$section ;;
|
|
esac
|
|
info -f ./mercury_user_guide.info -o $tmp $debug_cmd_path $section
|
|
../util/info_to_mdb $category $tmp >> mdb_doc
|
|
done
|