[Lunar-commits] CVS: moonbase/doc-tools/docbook-4.2 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

Moritz Heiber moe at lunar-linux.org
Thu Feb 17 10:51:01 UTC 2005


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

Added Files:
	BUILD DEPENDS DETAILS POST_INSTALL POST_REMOVE PRE_BUILD 
	PRE_REMOVE 
Log Message:
I'm adding those back for now. They are necessary for some modules
(i.e. gdk-pixbuf) to build their documentation. I'm going to chat with
the LFS guys about the 4.3 replacement though .. this is not over yet


--- NEW FILE: BUILD ---
(
  TARGET=/usr/share/sgml/docbook/$VERSION
 
  prepare_install &&
  if ! [ -d "$TARGET" ]; then
       mkdir -p $TARGET
  fi &&
  
  rm -rf $SOURCE_DIRECTORY/old.libraries &&

  for DFILE in $SOURCE_DIRECTORY/*; do
	install -m644 $DFILE $TARGET/
  done &&

  ln -sf $TARGET/docbook.cat $TARGET/catalog  
  
) > $C_FIFO 2>&1

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

--- NEW FILE: DETAILS ---
          MODULE=docbook-4.2
         VERSION=4.2
          SOURCE=$MODULE.zip
SOURCE_DIRECTORY=$BUILD_DIRECTORY/tmp-$MODULE
   SOURCE_URL[0]=http://docbook.org/sgml/4.2/
   SOURCE_URL[1]=http://lunar-linux.org/lunar/mirrors/
      SOURCE_VFY=sha1:98afcae616ed24edb30e40baa4ddd8cd8731f2c7
        WEB_SITE=http://www.oasis-open.org
         ENTERED=20050217
         UPDATED=20050217
           SHORT="The DocBook 4.2 DTD"

cat << EOF
The Docbook 4.2 DTD's.
EOF

--- NEW FILE: POST_INSTALL ---
CENTRALIZED=/etc/sgml/catalog 
DOCBOOK_INSTALL_DIR=/usr/share/sgml/docbook/$VERSION

if ! [ -e "$CENTRALIZED" ]; then
     echo "Creating $CENTRALIZED"
     mkdir -p /etc/sgml
     touch $CENTRALIZED
fi

install-catalog --remove $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog

install-catalog --add $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog
install-catalog --remove $CENTRALIZED /etc/sgml/catalog

--- NEW FILE: POST_REMOVE ---
# Cleanup

rm -rf /usr/share/sgml/docbook/$VERSION

--- NEW FILE: PRE_BUILD ---
mk_source_dir $SOURCE_DIRECTOY &&
unzip $SOURCE_CACHE/$SOURCE -d $SOURCE_DIRECTORY
  

--- NEW FILE: PRE_REMOVE ---
CENTRALIZED=/etc/sgml/catalog 
DOCBOOK_INSTALL_DIR=/usr/share/sgml/docbook/$VERSION

install-catalog -r $CENTRALIZED $DOCBOOK_INSTALL_DIR/catalog



More information about the Lunar-commits mailing list