summaryrefslogtreecommitdiff
path: root/packaging/sgml-skel-regcat2.diff
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/sgml-skel-regcat2.diff')
-rw-r--r--packaging/sgml-skel-regcat2.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/packaging/sgml-skel-regcat2.diff b/packaging/sgml-skel-regcat2.diff
new file mode 100644
index 0000000..96ff27e
--- /dev/null
+++ b/packaging/sgml-skel-regcat2.diff
@@ -0,0 +1,22 @@
+--- sgml-skel-0.6/sgml-register-catalog.in.~1~ 2002-11-28 16:30:54.000000000 +0100
++++ sgml-skel-0.6/sgml-register-catalog.in 2002-11-28 16:41:59.000000000 +0100
+@@ -111,7 +111,7 @@
+ # else
+ # echo "$SGML_POINTER $SGML_ORDINARY" >> $SGML_CENTRALIZED
+ # fi
+- grep -q -e "\<$SGML_ORDINARY\>" /etc/sgml/catalog 2>/dev/null
++ grep -q -e "$SGML_ORDINARY\"\?[ ]*$" /etc/sgml/catalog 2>/dev/null
+ if [ $? -ne 0 ]; then
+ echo "`basename $0`: addition of $SGML_ORDINARY in /etc/sgml/catalog"
+ echo "$SGML_POINTER \"$SGML_ORDINARY\"" >> /etc/sgml/catalog
+@@ -129,7 +129,7 @@
+ # set -x
+ # rm $SGML_ORDINARY
+ echo "`basename $0`: removal of $SGML_ORDINARY from /etc/sgml/catalog"
+- sed -e "\:$SGML_POINTER \+\"\?$SGML_ORDINARY\"\?\>:d" /etc/sgml/catalog \
++ sed -e "\:$SGML_POINTER \+\"\?$SGML_ORDINARY\"\?[ ]*$:d" /etc/sgml/catalog \
+ > /etc/sgml/catalog.new
+ mv /etc/sgml/catalog.new /etc/sgml/catalog
+ ;;
+
+Diff finished at Thu Nov 28 16:42:05