--- /usr/bin/jw Fri Feb 23 20:17:41 2001
+++ jw Tue Mar 6 16:22:45 2001
@@ -25,6 +25,7 @@
\040 -i|--include <section>: \t Specify a SGML marked section to include\n\
\040 \t\t\t\t (should be marked as \"ignore\" in the SGML text)\n\
\040 -h|--help: \t\t\t Print this help message and exit\n\
+\040 -V <variable[=value]>: \t Set a variable\n\
\040 -v|--version: \t\t Print the version and exit"
# Get name of main SGML configuration file
@@ -77,7 +78,7 @@
SGML_CURRENT_DIRECTORY=`pwd`
# Set option: do not output many chunks
-SGML_NOCHUNKS=""
+SGML_OPTIONS=""
# Set list of "include" marked sections
SGML_INCLUDE=""
@@ -112,9 +113,12 @@
-o|--output) SGML_OUTPUT_DIRECTORY=$2
shift 2
;;
- -u|--nochunks) SGML_NOCHUNKS="-V nochunks"
+ -u|--nochunks) SGML_OPTIONS="$SGML_OPTIONS -V nochunks"
shift 1
;;
+ -V) SGML_OPTIONS="$SGML_OPTIONS -V $2"
+ shift 2
+ ;;
-i|--include) case $2 in
print|html) echo "The marked section named \"$2\" is reserved for internal use by `basename $0`."
exit 1
@@ -298,7 +296,7 @@
fi
# Prepare the parser's arguments
-SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_NOCHUNKS $SGML_DECL $SGML_FILE"
+SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_DECL $SGML_FILE"
# Call the backend
echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
syntax highlighted by Code2HTML, v. 0.9.1