[Lunar-commits] <moonbase> docbook: fixed ugly warnings
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Sat Sep 11 22:30:38 CEST 2010
commit 2bfee56d3a102284b48fe333b3ca36d6d67be871
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Sat Sep 11 22:30:38 2010 +0200
docbook: fixed ugly warnings
---
doc-tools/docbook-sgml/PRE_BUILD | 2 +-
doc-tools/docbook-sgml/PRE_REMOVE | 2 +-
doc-tools/docbook-xml/PRE_BUILD | 4 ++--
doc-tools/docbook-xml/PRE_REMOVE | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc-tools/docbook-sgml/PRE_BUILD b/doc-tools/docbook-sgml/PRE_BUILD
index a50bf05..1a50e4f 100644
--- a/doc-tools/docbook-sgml/PRE_BUILD
+++ b/doc-tools/docbook-sgml/PRE_BUILD
@@ -10,6 +10,6 @@ unzip $SOURCE_CACHE/$SOURCE5 -d $SOURCE_DIRECTORY/4.5 &&
mkdir old.libraries &&
touch old.libraries/dontbreak &&
CENTRALIZED=/etc/sgml/catalog
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/{3*,4*,docbook-sgml*,sgml}`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/{3*,4*,docbook-sgml*,sgml} 2>/dev/null`
do install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog; done
rm -rf /usr/share/sgml/docbook/{3*,4*,docbook-sgml-*,old.libraries,sgml}
diff --git a/doc-tools/docbook-sgml/PRE_REMOVE b/doc-tools/docbook-sgml/PRE_REMOVE
index 2afd395..b0a3cf1 100644
--- a/doc-tools/docbook-sgml/PRE_REMOVE
+++ b/doc-tools/docbook-sgml/PRE_REMOVE
@@ -1,5 +1,5 @@
CENTRALIZED=/etc/sgml/catalog
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/sgml/*`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/sgml/* 2>/dev/null`
do
install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
done
diff --git a/doc-tools/docbook-xml/PRE_BUILD b/doc-tools/docbook-xml/PRE_BUILD
index e7c88a7..dba19ab 100644
--- a/doc-tools/docbook-xml/PRE_BUILD
+++ b/doc-tools/docbook-xml/PRE_BUILD
@@ -10,8 +10,8 @@ unzip $SOURCE_CACHE/$SOURCE3 -d $SOURCE_DIRECTORY/4.5 &&
mkdir old.libraries &&
touch old.libraries/dontbreak &&
CENTRALIZED=/etc/sgml/catalog
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/docbook-xml*`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/docbook-xml* 2>/dev/null`
do install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog; done
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/xml`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/xml 2>/dev/null`
do install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog; done
rm -rf /usr/share/sgml/docbook/{docbook-xml-*,xml,old.libraries}
diff --git a/doc-tools/docbook-xml/PRE_REMOVE b/doc-tools/docbook-xml/PRE_REMOVE
index a7ab109..fade2b0 100644
--- a/doc-tools/docbook-xml/PRE_REMOVE
+++ b/doc-tools/docbook-xml/PRE_REMOVE
@@ -1,9 +1,9 @@
CENTRALIZED=/etc/sgml/catalog
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/docbook-xml*`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/docbook-xml* 2>/dev/null`
do
install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
done
-for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/xml/*`
+for DOCBOOK_INSTALL_DIR in `ls -d /usr/share/sgml/docbook/xml/* 2>/dev/null`
do
install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
done
More information about the Lunar-commits
mailing list