[Lunar-commits] CVS: moonbase/doc-tools/docbook-sgml BUILD, 1.2, 1.3 DETAILS, 1.4, 1.5 POST_INSTALL, 1.5, 1.6 PRE_BUILD, 1.1, 1.2 PRE_REMOVE, 1.2, 1.3 POST_REMOVE, 1.1, NONE

Moritz Heiber moe at lunar-linux.org
Tue Feb 15 11:50:14 UTC 2005


Update of /var/cvs/lunar/moonbase/doc-tools/docbook-sgml
In directory espresso.foo-projects.org:/tmp/cvs-serv18725

Modified Files:
	BUILD DETAILS POST_INSTALL PRE_BUILD PRE_REMOVE 
Removed Files:
	POST_REMOVE 
Log Message:
This module has been (by way far) the worst module I have
ever seen since I'm with lunar. It made me a very sad panda.
So I almost completely rewrote it.

I'm too lame to count up on all the changes. Have a look
for yourself and ask if you need an explaination.


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-sgml/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	1 Aug 2003 13:44:18 -0000	1.2
+++ BUILD	15 Feb 2005 11:50:11 -0000	1.3
@@ -1,18 +1,14 @@
 (
-  #clean-up broken previous install if it exists
-  if [ -d /usr/share/xml ]; then
-     rm -Rf /usr/share/xml
-  fi                                            &&
-
   TARGET=/usr/share/sgml/docbook/$MODULE-$VERSION
  
-  cd $SOURCE_DIRECTORY                          &&
-  prepare_install                               &&
+  prepare_install &&
   if ! [ -d "$TARGET" ]; then
        mkdir -p $TARGET
-  fi                                            &&
- 
-  cp -a * $TARGET                               &&
+  fi &&
+
+  for DFILE in $SOURCE_DIRECTORY/*; do
+	install -m644 $DFILE $TARGET/
+  done &&
 
   ln -sf $TARGET/docbook.cat $TARGET/catalog  
   

Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-sgml/DETAILS,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- DETAILS	5 Oct 2004 09:29:55 -0000	1.4
+++ DETAILS	15 Feb 2005 11:50:12 -0000	1.5
@@ -3,7 +3,7 @@
          VERSION=4.2
           SOURCE=$MOD-$VERSION.zip
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/tmp
-   SOURCE_URL[0]=$LRESORT_URL/
+      SOURCE_URL=http://www.oasis-open.org/docbook/sgml/4.2/
         WEB_SITE=http://www.oasis-open.org/docbook/sgml/4.2/index.shtml
          ENTERED=20030103
          UPDATED=20030804

Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-sgml/POST_INSTALL,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- POST_INSTALL	30 Nov 2004 01:04:01 -0000	1.5
+++ POST_INSTALL	15 Feb 2005 11:50:12 -0000	1.6
@@ -1,6 +1,11 @@
-export centralized=/etc/sgml/catalog 
-export docbook_install_dir=/usr/share/sgml/docbook/$MODULE-$VERSION
+CENTRALIZED=/etc/sgml/catalog 
+DOCBOOK_INSTALL_DIR=/usr/share/sgml/docbook/$MODULE-$VERSION
 
-install-catalog --add $centralized $docbook_install_dir/catalog
-echo ""
-echo "docbook-sgml installed"
+if ! [ -e "$CENTRALIZED" ]; then
+     echo "Creating $CENTRALIZED"
+     mkdir -p /etc/sgml
+     touch $CENTRALIZED
+fi
+
+install-catalog --add $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
+install-catalog -r $CENTRALIZED /etc/sgml/catalog

Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-sgml/PRE_BUILD,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PRE_BUILD	3 Jan 2003 05:07:49 -0000	1.1
+++ PRE_BUILD	15 Feb 2005 11:50:12 -0000	1.2
@@ -1,3 +1,3 @@
-mkdir -p $SOURCE_DIRECTORY
+mk_source_dir $SOURCE_DIRECTOY &&
 unzip $SOURCE_CACHE/$SOURCE -d $SOURCE_DIRECTORY
   

Index: PRE_REMOVE
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-sgml/PRE_REMOVE,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- PRE_REMOVE	1 Aug 2003 13:44:18 -0000	1.2
+++ PRE_REMOVE	15 Feb 2005 11:50:12 -0000	1.3
@@ -1,6 +1,4 @@
-export centralized=/etc/sgml/catalog
-export docbook_install_dir=/usr/share/sgml/$MODULE-$VERSION
+CENTRALIZED=/etc/sgml/catalog 
+DOCBOOK_INSTALL_DIR=/usr/share/sgml/docbook/$MODULE-$VERSION
 
-install-catalog -r $centralized $docbook_install_dir/docbook.cat  
-#For older installs
-install-catalog -r $centralized /usr/share/$MODULE/docbook.cat
+install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog

--- POST_REMOVE DELETED ---



More information about the Lunar-commits mailing list