--- a/bin/install-catalog.in 2012-09-04 16:37:48.000000000 -0700
+++ b/bin/install-catalog.in 2012-09-04 16:37:56.000000000 -0700
\040 -h, --help: \t\t\t\t Print this help message and exit\n\
\040 -v, --version: \t\t\t Print the version number and exit\n"
+# We need the files we create to be world readable
SGML_VERSION_MESSAGE="sgml-common version @VERSION@ (install-catalog version 1.0)"
-a|--add) SGML_ACTION="addition"
-r|--remove) if [ -z "$3" -o "$3" = "--version" ]
-h|--help) echo -e $SGML_HELP_MESSAGE
- if [ -e $SGML_CENTRALIZED -a ! -w $SGML_CENTRALIZED ]
+ if [ -e "$SGML_CENTRALIZED" -a ! -w "$SGML_CENTRALIZED" ]
echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2
- if [ ! -w $SGML_CENTRALIZED ]
+ if [ ! -w "$SGML_CENTRALIZED" ]
echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2
- if [ ! -s $SGML_ORDINARY ]
+ if [ ! -s "$SGML_ORDINARY" ]
echo "`basename $0`: \"$SGML_ORDINARY\" does not exist or is empty." >&2