Bruce Dubbs wrote:
> The daily script for generating the book now automatically generates the
>  udev and bootscript tarballs.  When making a change to either, the
> packages.ent has to be updated manually with the version date and md5sum.
>
> I'd like to automate this further, but I don't know of a way to
> determine the date of the last check in in a subtree.  It would also
> require a sed to packages.ent and a commit to the repository to keep the
> xml in sync.
>
> Perhaps we can get back to this after 6.2 but its time to move on toward
> the release.
>
>   -- Bruce
>   
You can get the date with this command or something similar:
svn cat svn://svn.linuxfromscratch.org/LFS/trunk/BOOK/general.ent | awk
'/<!ENTITY version/ {print $3}' | cut -d\" -f2

cat packages.ent  | sed "/udev-config-md5/s/ \".*/ \"new_md5sum\">/"

here's what I would do:

#!/bin/bash

tmpdir=$(mktemp -d)
cd $tmpdir

svn co svn://svn.linuxfromscratch.org/LFS/trunk/BOOK
svn co svn://svn.linuxfromscratch.org/LFS/trunk/udev
svn co svn://svn.linuxfromscratch.org/LFS/trunk/bootscripts



# Commit the book back
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to