From d5ed70a96fb64b22b04946411c1a4e4b0f8c422f Mon Sep 17 00:00:00 2001 From: "John P. Davis" Date: Fri, 8 Nov 2002 02:27:13 +0000 Subject: new lang.desc -> lang.html support --- app-doc/gentoo-web/gentoo-web-2.4.ebuild | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'app-doc') diff --git a/app-doc/gentoo-web/gentoo-web-2.4.ebuild b/app-doc/gentoo-web/gentoo-web-2.4.ebuild index 3d5b0f47af31..d66c2b126a04 100644 --- a/app-doc/gentoo-web/gentoo-web-2.4.ebuild +++ b/app-doc/gentoo-web/gentoo-web-2.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.4.ebuild,v 1.13 2002/11/07 20:40:16 zhen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.4.ebuild,v 1.14 2002/11/08 02:27:13 zhen Exp $ S=${WORKDIR}/gentoo-src/gentoo-web TEMPLATE=${S}/xsl/guide-main.xsl @@ -160,6 +160,22 @@ src_install() { echo "$line " | sed 's/___/ /g'>> ${T}/main-use.xml done echo "" >> ${T}/main-use.xml + + #create the lang description page + echo "" > ${T}/main-lang.xml + echo 'Gentoo Linux LANG DescriptionsJohn P. Davis' >> ${T}/main-lang.xml + echo "1.0${mydate}LANG Descriptions" >> ${T}/main-lang.xml + echo "

A small table of currently available LANG variables and a short description of each

" >> ${T}/main-lang.xml + echo '' >> ${T}/main-lang.xml + + # The following line is not the most elegant, but in this instance we go for readability over compactness + for line in `cat /usr/portage/profiles/lang.desc | grep -v \# | sed 's/ /___/g'|sed 's/___-___/\<\/ti>\/'` + do + echo "$line " | sed 's/___/ /g'>> ${T}/main-lang.xml + done + echo "
LANGDescription
" >> ${T}/main-lang.xml + + insinto ${WEBROOT} xsltproc $TEMPLATE ${T}/main-news.xml > ${D}${WEBROOT}/index.html || die @@ -171,6 +187,7 @@ src_install() { xsltproc $TEMPLATE xml/main-contract.xml > ${D}${WEBROOT}/index-contract.html || die xsltproc $TEMPLATE xml/main-graphics.xml > ${D}${WEBROOT}/index-graphics.html || die xsltproc $TEMPLATE ${T}/main-use.xml > ${D}${WEBROOT}/doc/use.html || die + xsltproc $TEMPLATE ${T}/main-lang.xml > ${D}${WEBROOT}/doc/lang.html || die xsltproc $TEMPLATE xml/main-mirrors.xml > ${D}${WEBROOT}/index-mirrors.html || die xsltproc $TEMPLATE xml/main-irc.xml > ${D}${WEBROOT}/index-irc.html || die OLDROOT=${ROOT} ; unset ROOT -- cgit v1.2.3-65-gdbad