not found (:del)
calmar <[email protected]> Sat, 18 Feb 2006 07:16:16 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, hi Bram,
| :rule %.php : $cwd/htmlbegin.part
| %.part
| $cwd/htmlend.part
| tmpstring = _no.$(match)_title # is there a title for that page set?
| @import sre
| @try:
| @ title = eval( tmpstring )
| @except KeyError:
| @ title = ""
| :cat $(source) | :eval string.replace(stdin,
| '@TITLE@', title) >! $(target).tmp
| :cat $(target).tmp | :eval sre.sub('<\?xml.*',
| '<?php echo \'<?xml version="1.0" encoding="iso-8859-1" ?>\'; ?>\n',
| stdin) >! $(target)
| :del $(target).tmp
|
| :attr { publish = $(ftp_url)%file% } $files
|
| all : $files
| :publish $files
|
| calmar@tuxli:~/www/bcr> aap
| Aap: Deleted "index.php"
| Aap: Error in recipe "/var/www/bcr/main.aap" line 76: No such file or directory: ".tmp"
| Aap: All messages are in the logfile: /var/www/bcr/AAPDIR/log
I think the :del $(target).tmp does not really work as expected, or does it?
Also (in the same manner), when I place there a :print $(target).tmp, I get:
index.php{publish=ftp://n4b244:[email protected]/html/bcr-test/%file%}.tmp
(I would expect: `index.php.tmp' instead)
When I use e.g: tmp_$(target) instead of $(target).tmp or however, it seems to work.
So :del and :print seems to use (add the suffix) the file including the attribute.
(btw: the :cat statement seems to use $(target).tmp as expeced, and produces the files)
Cheers,
marco
--
calmar
(o_ It rocks: LINUX + Command-Line-Interface
//\
V_/_ http://www.calmar.ws
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642