Bruce Dubbs wrote:
Sure. I'm already doing that. The problem is detecting when a commit
was made since the entity was last changed.
What I do for the CLFS book render on hops (as it checks for changes
every 30 minutes and renders if yes) is a function such as:
KEY:
$LOCAL - dir storing text files with revision numbers in it
$ITEM - can check multiple text files per project/book/ver
checkRevision(){
UPDATE=0
[ -f "$LOCAL/$ITEM-rev.txt" ] || echo 0 > $LOCAL/$ITEM-rev.txt
CURREV=`svn info $SVNDIR | grep "Last Changed Rev: " | \
sed "s/Last Changed Rev: //"`
if [ `cat $LOCAL/$ITEM-rev.txt` -ne $CURREV ] ; then
UPDATE=1
echo $CURREV > $LOCAL/$ITEM-rev.txt
fi
}
Then render if UPDATE=1.
Justin
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page