CVS: crater/doc-tools/docbook-sgml BUILD, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 POST_REMOVE, NONE, 1.1 PRE_BUILD, NONE, 1.1 PRE_REMOVE, NONE, 1.1

nhudson at lunar-linux.org nhudson at lunar-linux.org
Thu Jul 24 03:58:54 GMT 2003


Update of /var/cvs/lunar/crater/doc-tools/docbook-sgml
In directory dbguin.lunar-linux.org:/tmp/cvs-serv11783/docbook-sgml

Added Files:
	BUILD DEPENDS DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
	PRE_REMOVE 
Log Message:

Adding docbook-sgml to crater for now.  Ok just a little bit on what I am doing
I am installing everything to /usr/share/sgml so that everything will be uniform
I am hoping that this will fix some problems.  Though the majority of the 
problems that occur are due to things building in the wrong order.  That 
should be strait also when I am done.


--- NEW FILE: BUILD ---
(
  #clean-up broken previous install if it exists
  if [ -d /usr/share/xml ]; then
     rm -Rf /usr/share/xml
  fi                                            &&

  TARGET=/usr/share/sgml/$MODULE-$VERSION
 
  cd $SOURCE_DIRECTORY                          &&
  prepare_install                               &&
  if ! [ -d "$TARGET" ]; then
       mkdir -p $TARGET
  fi                                            &&
 
  cp -a * $TARGET
  
) > $C_FIFO 2>&1

--- NEW FILE: DEPENDS ---
depends sgml-common

--- NEW FILE: DETAILS ---
          MODULE=docbook-sgml
             MOD=docbook
         VERSION=4.2
          SOURCE=$MOD-$VERSION.zip
SOURCE_DIRECTORY=$BUILD_DIRECTORY/tmp
   SOURCE_URL[0]=http://www.oasis-open.org/docbook/sgml/4.2/$SOURCE
        WEB_SITE=http://www.oasis-open.org/docbook/sgml/4.2/index.shtml
         ENTERED=20030103
         UPDATED=20030103
           SHORT="The DocBook SGML DTD"
cat << EOF

DocBook is an XML/SGML vocabulary particularly well suited to books 
and papers about computer hardware and software (though it is by no
means limited to these applications).

The DocBook Technical Committee maintains the DocBook schema. 
DocBook is officially available as a Document Type Definition (DTD) 
for both XML and SGML. It is unofficially available in other forms 
as well.

EOF

--- NEW FILE: POST_INSTALL ---
export centralized=/etc/sgml/catalog 
export docbook_install_dir=/usr/share/sgml/$MODULE-$VERSION

install-catalog --add $centralized $docbook_install_dir/docbook.cat
echo "docbook-sgml installed"

--- NEW FILE: POST_REMOVE ---
rm -fr /usr/share/$MODULE 
rm -fr /usr/share/sgml/$MODULE*
rm -fr /usr/share/doc/$MODULE*

--- NEW FILE: PRE_BUILD ---
mkdir -p $SOURCE_DIRECTORY
unzip $SOURCE_CACHE/$SOURCE -d $SOURCE_DIRECTORY
  

--- NEW FILE: PRE_REMOVE ---
export centralized=/etc/sgml/catalog
export docbook_install_dir=/usr/share/sgml/$MODULE-$VERSION

install-catalog -r $centralized $docbook_install_dir/docbook.cat  
#For older installs
install-catalog -r $centralized /usr/share/$MODULE/docbook.cat




More information about the Lunar-commits mailing list