[AAP] list of updated sources

[email protected] (Luc Hermitte) Wed, 7 Jul 2004 03:08:59 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <20040707010859.GB4918@jade>
Hello,

I'm trying to get the list of the files that have been modified since
the last execution of aap.

So far, I've used the trick "Copying All Files At Once" (in
user-publish.html). However I do not just want to copy the files on my
web site but first convert them in a _single_ action.

The trick with "finally" does not seems really appropriated as it happens
at the very end of the execution of A-A-P.
In there another way to build the list of updated files ?

Just in case I missed something, here are my aap files:

---< main.aap >---
    [...]
    UpdatedConfFiles =
    :child findinmailrc.aap
    :print Main: $UpdatedConfFiles # always prints "Main: " 
    [...]
    SITEFiles += UpdatedConfFiles
    :attr {publish = ftp://..../mutt/%file%} $SITEFiles

---< findinmailrc.aap>---
    ConfFilesOrig =
	    mailrc/muttrc*
	    mailrc/mailcap

    Res = 

    # todo: find out how to use basename in the rule
    :rule files/mailrc/%.html : % # files/mailrc/mailrc {directory = 700}
	_recipe.Res += $source
	_top.UpdatedConfigFiles += $source

    all: files/mailrc/$*(ConfFilesOrig).html {remember}
    # BTW aap does not accept {virtual} and {remember} here

    finally: files/mailrc/mailrc/ {directory = 700}
	    @if _recipe.Res:
		:print finally: $_recipe.Res # prints the correct list 
		:do HTMLize $_recipe.Res
------

TIA


PS: Two days ago I tried to post this message directly via gmane. It
seems the message never reached the list. I hope, now I'm subscribed,
that it won't appear twice.
-- 
Luc Hermitte


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com