Re: [PATCH] Add package info in sect1info elements

2007-09-07 Thread M.Canales.es
El Sábado, 21 de Julio de 2007 01:10, Dan Nicholson escribió:


 I've been playing around with jhalfs and I realized that there was no
 easy way to access the package name and version on a given page. Manuel
 and I had a discussion on alfs-discuss and he suggested using the
 productname and productnumber children of the sect1info elements.

This one has been applied in r8366 with two changes:

- In productname the actual package name is used, instead off adding 
tools- to chapter05 pages and -headers to the linux headers installation. 
At this moment jhalfs is finding the package name via several hacks that 
could be avoided now. That name extensions can be re-generated from inside 
the jhalfs code and placed on a separate variable, if required to help 
creating customizations for PM.

- An address tag has been added containing the package URL entity. From it 
we will can extract more easily the tarball name, removing more hacks, and 
could allow to extract the tarballs from inside the scripts instead than from 
the Makefile like now. 


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:   http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:   http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


[PATCH] Add package info in sect1info elements

2007-07-20 Thread Dan Nicholson
From 464c7bc0fa13ca8d6eb554d798eae2186867ac14 Mon Sep 17 00:00:00 2001
From: Dan Nicholson [EMAIL PROTECTED]
Date: Thu, 19 Jul 2007 18:15:20 -0700
Subject: [PATCH] Add package info in sect1info elements

I've been playing around with jhalfs and I realized that there was no
easy way to access the package name and version on a given page. Manuel
and I had a discussion on alfs-discuss and he suggested using the
productname and productnumber children of the sect1info elements.

http://linuxfromscratch.org/pipermail/alfs-discuss/2007-July/009376.html

These are currently unused, so shouldn't have any conflicts. Further, the
sect1info element is protected by the condition attribute to prevent it
from being processed by the HTML or PDF stylesheets.

I added these elements to all the packages in Ch. 5 and Ch.6 and the kernel
page in Ch. 8. The HTML output was diffed and no changes were shown.

Any objections?

--
Dan

 BOOK/chapter05/bash.xml  |5 +
 BOOK/chapter05/binutils-pass1.xml|5 +
 BOOK/chapter05/binutils-pass2.xml|5 +
 BOOK/chapter05/bison.xml |5 +
 BOOK/chapter05/bzip2.xml |5 +
 BOOK/chapter05/coreutils.xml |5 +
 BOOK/chapter05/dejagnu.xml   |5 +
 BOOK/chapter05/diffutils.xml |5 +
 BOOK/chapter05/expect.xml|5 +
 BOOK/chapter05/findutils.xml |5 +
 BOOK/chapter05/flex.xml  |5 +
 BOOK/chapter05/gawk.xml  |5 +
 BOOK/chapter05/gcc-pass1.xml |5 +
 BOOK/chapter05/gcc-pass2.xml |5 +
 BOOK/chapter05/gettext.xml   |5 +
 BOOK/chapter05/glibc.xml |5 +
 BOOK/chapter05/grep.xml  |5 +
 BOOK/chapter05/gzip.xml  |5 +
 BOOK/chapter05/linux-headers.xml |5 +
 BOOK/chapter05/m4.xml|5 +
 BOOK/chapter05/make.xml  |5 +
 BOOK/chapter05/ncurses.xml   |5 +
 BOOK/chapter05/patch.xml |5 +
 BOOK/chapter05/perl.xml  |5 +
 BOOK/chapter05/sed.xml   |5 +
 BOOK/chapter05/tar.xml   |5 +
 BOOK/chapter05/tcl.xml   |5 +
 BOOK/chapter05/texinfo.xml   |5 +
 BOOK/chapter05/util-linux.xml|5 +
 BOOK/chapter06/autoconf.xml  |5 +
 BOOK/chapter06/automake.xml  |5 +
 BOOK/chapter06/bash.xml  |5 +
 BOOK/chapter06/binutils.xml  |5 +
 BOOK/chapter06/bison.xml |5 +
 BOOK/chapter06/bzip2.xml |5 +
 BOOK/chapter06/coreutils.xml |5 +
 BOOK/chapter06/db.xml|5 +
 BOOK/chapter06/diffutils.xml |5 +
 BOOK/chapter06/e2fsprogs.xml |5 +
 BOOK/chapter06/file.xml  |5 +
 BOOK/chapter06/findutils.xml |5 +
 BOOK/chapter06/flex.xml  |5 +
 BOOK/chapter06/gawk.xml  |5 +
 BOOK/chapter06/gcc.xml   |5 +
 BOOK/chapter06/gettext.xml   |5 +
 BOOK/chapter06/glibc.xml |5 +
 BOOK/chapter06/grep.xml  |5 +
 BOOK/chapter06/groff.xml |5 +
 BOOK/chapter06/grub.xml  |5 +
 BOOK/chapter06/gzip.xml  |5 +
 BOOK/chapter06/iana-etc.xml  |5 +
 BOOK/chapter06/inetutils.xml |5 +
 BOOK/chapter06/iproute2.xml  |5 +
 BOOK/chapter06/kbd.xml   |5 +
 BOOK/chapter06/less.xml  |5 +
 BOOK/chapter06/libtool.xml   |5 +
 BOOK/chapter06/linux-headers.xml |5 +
 BOOK/chapter06/m4.xml|5 +
 BOOK/chapter06/make.xml  |5 +
 BOOK/chapter06/man-db.xml|5 +
 BOOK/chapter06/man-pages.xml |5 +
 BOOK/chapter06/mktemp.xml|5 +
 BOOK/chapter06/module-init-tools.xml |5 +
 BOOK/chapter06/ncurses.xml   |5 +
 BOOK/chapter06/patch.xml |5 +
 BOOK/chapter06/perl.xml  |5 +
 BOOK/chapter06/procps.xml|5 +
 BOOK/chapter06/psmisc.xml|5 +
 BOOK/chapter06/readline.xml  |5 +
 BOOK/chapter06/sed.xml   |5 +
 BOOK/chapter06/shadow.xml|5 +
 BOOK/chapter06/sysklogd.xml  |5 +
 BOOK/chapter06/sysvinit.xml  |5 +
 BOOK/chapter06/tar.xml   |5 +
 BOOK/chapter06/texinfo.xml   |5 +
 BOOK/chapter06/udev.xml  |5 +
 BOOK/chapter06/util-linux.xml|5 +
 BOOK/chapter06/vim.xml   |5 +
 BOOK/chapter06/zlib.xml  |5 +
 BOOK/chapter08/kernel.xml|5