]> git.pld-linux.org Git - packages/sgml-common.git/commitdiff
080b1f8fd243651d4ff37b7fba9afbe9 sgml-common-chmod.patch
authorklakier <klakier@pld-linux.org>
Mon, 12 Feb 2001 14:50:06 +0000 (14:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sgml-common-chmod.patch -> 1.1

sgml-common-chmod.patch [new file with mode: 0644]

diff --git a/sgml-common-chmod.patch b/sgml-common-chmod.patch
new file mode 100644 (file)
index 0000000..eb1becf
--- /dev/null
@@ -0,0 +1,34 @@
+diff -Nur --exclude *~ sgml-common-0.5/bin/install-catalog sgml-common-0.5.new/bin/install-catalog
+--- sgml-common-0.5/bin/install-catalog        Mon Feb 12 15:43:14 2001
++++ sgml-common-0.5.new/bin/install-catalog    Mon Feb 12 15:46:26 2001
+@@ -133,12 +133,14 @@
+         echo "Warning: $SGML_ORDINARY is already installed in the centralized catalog $SGML_CENTRALIZED"
+       else
+         echo "$SGML_POINTER $SGML_ORDINARY" >> $SGML_CENTRALIZED
++        chmod 644 $SGML_CENTRALIZED
+       fi
+       grep -q $SGML_CENTRALIZED /etc/sgml/catalog 2>/dev/null
+       if [ $? -ne 0 ]
+       then
+         echo "`basename $0`: addition of $SGML_CENTRALIZED in /etc/sgml/catalog"
+         echo "$SGML_POINTER $SGML_CENTRALIZED" >> /etc/sgml/catalog
++        chmod 644 /etc/sgml/catalog
+       fi
+       ;;
+    removal)
+@@ -147,6 +149,7 @@
+       then
+           sed -e "\:$SGML_POINTER $SGML_ORDINARY:d" < $SGML_CENTRALIZED > ${SGML_CENTRALIZED}.new
+           mv ${SGML_CENTRALIZED}.new $SGML_CENTRALIZED
++        chmod 644 $SGML_CENTRALIZED
+       else
+         echo "Warning: $SGML_ORDINARY was not found in the centralized catalog $SGML_CENTRALIZED"
+       fi
+@@ -156,6 +159,7 @@
+         echo "`basename $0`: removal of $SGML_CENTRALIZED from /etc/sgml/catalog"
+           sed -e "\:$SGML_POINTER $SGML_CENTRALIZED:d" < /etc/sgml/catalog > /etc/sgml/catalog.new
+           mv /etc/sgml/catalog.new /etc/sgml/catalog
++        chmod 644 /etc/sgml/catalog
+       fi
+       ;;
+ esac
This page took 0.026828 seconds and 4 git commands to generate.