[blfs-dev] Rendering LFS/BLFS books
baho-utot at columbus.rr.com
Mon Mar 18 09:52:22 PDT 2013
On 03/18/2013 12:35 PM, Bruce Dubbs wrote:
> Baho Utot wrote:
>> I have cloned the svn repositories for the BLFS and the LFS books.
>> I have then rendered both LFS and BLFS books.
>> I have found some things I would like to bring to the table.
>> 1. The BLFS book places the finished book in a totally different sub
>> directory. I am suggessing the following change to the Makefile
>> BASEDIR ?= $(HOME)/public_html/blfs-book-xsl
>> DUMPDIR ?= $(HOME)/blfs-commands
>> BASEDIR ?= ~/blfs-book
>> DUMPDIR ?= ~/blfs-commands
>> This makes it consistent with the LFS book output locations
> You can easily override a Makefile variable with an environment variable
> to suit your needs.
Yes I know/understand, my suggested changes just makes things more uniform.
I have already modified the makefile so it will be ok until some one
updates it and clobbers my changes
>> 2. The BLFS svn book does not make the boot scripts package like the
>> LFS book. Can this be added/corrected to the book makefile so it matches
>> what the LFS book does and produce the bootscripts package?
> That's a bit more complex. There are several ways to do things, but
> your change would require me to do a lot of changes. What I use now in
> the daily build is:
> XML_DIR=`mktemp -d /tmp/blfsbookxml.XXXXXX`
> cd $XML_DIR
> svn --quiet export "$SVN" BLFS
> # Build the bootscripts
> cd $BOOK_DIR
> VERSION=`grep "bootscripts-version " general.ent|cut -d\" -f2`
> DEST=`grep "downloads-root " general.ent|cut -d\" -f2|cut -b 8-`
> cd $BLFS_DIR
> mv bootscripts $BOOTSCRIPTS
> sleep 2
> tar -cjhf $BOOTSCRIPTS.tar.bz2 $BOOTSCRIPTS
> # copy $BOOTSCRIPTS.tar.bz2 to the desired location
> Why don't you just use that or a variation.
> -- Bruce
I'll add it to my script
More information about the blfs-dev