summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSherman Boyd <meekrob@gentoo.org>2002-06-06 00:01:17 +0000
committerSherman Boyd <meekrob@gentoo.org>2002-06-06 00:01:17 +0000
commitf84ee2761491ab2e4835bff899896b3f0b67a0df (patch)
treeb8f195b873c6fc913e9cc12d21122e035921cde5 /app-doc
parentenhancements (diff)
downloadgentoo-2-f84ee2761491ab2e4835bff899896b3f0b67a0df.tar.gz
gentoo-2-f84ee2761491ab2e4835bff899896b3f0b67a0df.tar.bz2
gentoo-2-f84ee2761491ab2e4835bff899896b3f0b67a0df.zip
Added host detection for meekrob.
Changed dir structure and doc for loop. Changed all TEMPLATE to use ${S}. Changed dev list generator path to include ${S}. New directory structure for docs: gentoo-web/xml/doc gentoo-web/xml/doc/en gentoo-web/xml/doc/es gentoo-web/xml/doc/fr
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/gentoo-web/gentoo-web-2.2.ebuild48
1 files changed, 41 insertions, 7 deletions
diff --git a/app-doc/gentoo-web/gentoo-web-2.2.ebuild b/app-doc/gentoo-web/gentoo-web-2.2.ebuild
index 5154c388e998..a93a7eb5ad3c 100644
--- a/app-doc/gentoo-web/gentoo-web-2.2.ebuild
+++ b/app-doc/gentoo-web/gentoo-web-2.2.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2001 Gentoo Technologies, Inc. Distributed under the terms
# of the GNU General Public License, v2 or later
# Author: Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.2.ebuild,v 1.59 2002/05/15 19:49:45 g2boojum Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.2.ebuild,v 1.60 2002/06/06 00:01:17 meekrob Exp $
# WARNING: THIS EBUILD SHOULD BE EDITED BY DANIEL ROBBINS ONLY
-TEMPLATE="xsl/guide-main.xsl"
S=${WORKDIR}/gentoo-src/gentoo-web
+TEMPLATE=${S}/xsl/guide-main.xsl
DESCRIPTION="www.gentoo.org website"
SRC_URI="http://www.red-bean.com/cvs2cl/cvs2cl.pl"
HOMEPAGE="http://www.gentoo.org"
@@ -14,16 +14,25 @@ RDEPEND="virtual/python dev-libs/libxslt"
WEBROOT=/www/virtual/www.gentoo.org/htdocs
src_unpack() {
+ local myhost
+ myhost=`hostname`
+ if [ "$myhost" = "laptop.kicks-ass.net" ]
+ then
+ export GENTOO_SRCDIR=/home/meekrob/gentoo-src
+ WEBROOT=/home/httpd/htdocs
+ echo -e "\e[32;1mMEEKROB detected.\e[0m"
+ echo "Setting GENTOO_SRCDIR to $GENTOO_SRCDIR"
+ echo "Setting WEBROOT to $WEBROOT"
+ fi
if [ "$MAINTAINER" != "yes" ]
then
echo "This will zap stuff in ${WEBROOT}."
echo "Beware -- maintainers only."
fi
cd ${WORKDIR}/${P}
- local myhost
- myhost=`hostname`
if [ "$myhost" = "inventor.gentoo.org" ]
then
+ echo -e "\e[32;1mCHIBA detected.\e[0m"
ln -s /home/drobbins/gentoo-src gentoo-src
elif [ "$myhost" = "chiba.3jane.net" ]
then
@@ -37,19 +46,44 @@ src_unpack() {
}
src_compile() {
- python python/gendevlistxml.py txt/devlist.txt xml/main-devlist.xml
+ python ${S}/python/gendevlistxml.py txt/devlist.txt xml/main-devlist.xml
}
src_install() {
dodir ${WEBROOT}/doc
dodir ${WEBROOT}/projects
insinto ${WEBROOT}/doc
+
+ #process english docs
+ cd ${S}/xml/doc/en
+ local x
+ for x in *.xml
+ do
+ x=`basename ${x} .xml`
+ xsltproc $TEMPLATE ${x}.xml > ${D}${WEBROOT}/doc/${x}.html || die
+ done
cd ${S}
+
+ #process spanish docs
+ cd ${S}/xml/doc/es
local x
- for x in mirroring gentooppc-quickstart use-howto gentoo-security rc-scripts java eclass-howto build desktop xml-guide portage-manual portage-user gentoo-howto faq nvidia_tsg openafs cvs-tutorial shots ebuild-submit altinstall uml nano-basics-guide build-fr desktop-fr portage-manual-fr portage-user-fr faq-fr nvidia_tsg-fr altinstall-fr rc-scripts-fr
+ for x in *.xml
do
- xsltproc $TEMPLATE xml/${x}.xml > ${D}${WEBROOT}/doc/${x}.html || die
+ x=`basename ${x} .xml`
+ xsltproc $TEMPLATE ${x}.xml > ${D}${WEBROOT}/doc/${x}.html || die
done
+ cd ${S}
+
+ #process french docs
+ cd ${S}/xml/doc/fr
+ local x
+ for x in *.xml
+ do
+ x=`basename ${x} .xml`
+ xsltproc $TEMPLATE ${x}.xml > ${D}${WEBROOT}/doc/${x}.html || die
+ done
+ cd ${S}
+
cp txt/firewall ${D}${WEBROOT}/doc/
dodir ${WEBROOT}/images
insinto ${WEBROOT}/images