Re: [Tack-devel] Prime Mover commands
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: tim k. <gt...@di...> - 2006-08-01 00:01:59
|
At 7:15 AM -0400 7/31/06, David Given wrote: >> 3) As another feature request, can the cache directory no longer default >> to a "." directory? Sometimes I forget the cache directory is hidden, and >> while at least with OpenBSD "ls" does automatically -a, not all systems do. > >Put: > >pm.intermediatecache = "path" > >...in your pmfile. (The ACK config.pm does this.) This did not work for me, unfortunately. ./.pm-exec-macppc: stdin:71: Attempt to write to new global intermediatecache stack traceback: [C]: in function `error' stdin:71: in function <stdin:70> lib/libsa/pmfile:12: in function `c' stdin:937: in function `include' pmfile:16: in function `c' stdin:1524: in main chunk [C]: ? The local pmfile: local o = OBJDIR.."lib/libsa/" pm.intermediatecache = o On a different note, I would like to alter the default cfile behavior slightly, but I am having some difficulty achieving my desired results. I wish to simplify the adding of files to pmfiles, such that I add a single line naming the root of the .c file and both the source .c file and the output .o file are created dynamically. For example: qdvirem = ext_cfile {"qdivrem"} should know to look in the source code directory for qdivrem.c and to output to the object directory qdivrem.o. With the above syntax I can then add qdivrem to a group while compiling it individually if I choose. math = group { stuff, qdvirem, more_stuff, } I have been able to achieve basic results by overriding the cfile outputs method at the time of the declaration of qdvirem: qdvirem = cfile {d.."qdivrem.c"}, output = {o.."qdvirem.o"} } but this is still unnecessarily verbose. My attempts to override the inputs to cfile are not succeeding: local d = ROOTDIR.."lib/libsa/" local o = OBJDIR.."lib/libsa/" ext_cfile = cfile { class = "ext_cfile", outputs = {o.."%in%.o"}, in = {d..%in%..".c"}, } I have also attempted to modify the definition of cfile in c.pm, but I am not getting anywhere there, either, as there is still the intermediate cache location as the default. I don't grok where U and I are defined, also. Any suggestions/advice are greatly appreciated (I did manage to get a shell file executing to build the versioning information for the executable, a small victory to cling to). thanks in advance, tim Gregory T. (tim) Kelly Owner Dialectronics.com P.O. Box 606 Newberry, SC 29108 "Anything war can do, peace can do better." -- Bishop Desmond Tutu |