Saturday, January 15. 2011Why djb redo won't be the Git of build systemsTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
So I guess that's a vote in favour of the search-parent-dirs branch/feature in my github repo then, which will solve all your subdir problems
I had been trying to decide if the extra complexity was worth it, but your use case is pretty convincing.
How does it solve the following problem: imagine I have a default.o.do in the root directory, to which the stuff in the src subdirectory will default to, except for one file is the src subdirectory, which is handled by its own foo.o.do file and which requires the same parameters. As far as I understand, the command will again be run from the src subdirectory, and thus a different -I parameter is again needed.
Every .do file is run from the directory where it's located - see https://github.com/apenwarr/redo/commit/0dcc3f61b6b71d60b13e84ef98e4b8ee67232d64. So default.o.do will work for every .o file, no matter where it's located. foo.o.do will need a different value for -l, but it's special anyway.
I had very similar problems to the ones you described, and worked around them by:
- linking the various default.XXX.do in subdirectories to the ones at the root of the project - using "./$(git rev-parse --print-cdup)/path/to/file" in the default.XXX.do files to refer to a "path/to/file" at the root of the repository. It is not ideal, but it worked very well for me. My code is at http://goo.gl/ZgvpP: it's a method to syntax check and test a Perl distribution, and uses the above method to do just that.
As of redo 0.04, the search-parent-dirs feature has been merged in. I think this addresses your issue
|
Calendar
QuicksearchShow tagged entries22c3 23c3 amsterdam announcement apache argentina army austria beer berlin book borland bsd c c++ camera censorship cms complaint concert cooking electronic music email fail feedreader fefe fnord food fun gas mask gcc german germany git gnu golang google hacking history html http i18n imap internet israel job kaminer lecture linux linz macbookpro mobile movie music network newsbeuter noos one panorama pearl jam performance photo photography photos pictures polaroid police politics problem programming quiz rant recommendation reggae release rss ruby screencast seagull security series server shower ska skabucks stfl terrorism travelling tv unix usa video vienna war weird wikipedia windows work wplotd youtube
Blog AdministrationLinksBlogroll• xkcd.com
• Planet Debian • MY POV ([expect the unexpected]) • C skills • Planet Erlang / Published News • armstrong on software • Photos from akrennmair • Das Metalab informiert • dive into mark • /usr/local/bin • F!XMBR • heise online News (full feed) • JLog • SecuriTeam Blogs • .:Computer Defense:. • Riot Porn • Chaosradio • Radiomultikulti vom RBB: Russendisko unplugged • AK's weblog • The Recurity Lablog • milw0rm.com • seclog.de • ilja's blag • udo.kernecker.at - mein leben als prinzregent... ;-) • grabnerandi.at diary feed • Hilli's WebLog • accidents waiting to happen • Venzi's Weblog • TaoSecurity • Irrlicht3d.org • murphee's Rant • waiterrant.net • grml development blog • mutt Changelog • nion's blog • Wannabe Everything • blog@bytelabs • Knowledge Brings Fear • Die wunderbare Welt von Isotopp • Fefes Blog • law blog • mikas blog • BILDblog • GoogleWatchBlog • Krone - Blog • The Lunatic Fringe • mp's blog • Su-Shee 2.0 • Sex, Drugs & Compiler Construction • Qbi's Weblog • gedankensplitter • Ohns Gehirnschleimschmiede • fh • Clifford Wolf's Blog • AK's moblog • Telepolis News • Slashdot • Newssystem von bundesheer.at • Riding Rails - home • Serendipity • O'Reilly Ruby • CCC Events Weblog • del.icio.us/dubrider • del.icio.us/timpritlove • del.icio.us/ak • del.icio.us/mika • AK's Soup • Friends of ak • Astronomy Picture of the Day • german-bash.org - Die neuesten Zitate • QDB • WeirdWeirdWorld Latest Feed • I CAN HAS CHEEZBURGER? • The Trailer Mash • Cruel.Com • fun.drno.de • Peter Pilz grüner Sicherheitssprecher Österreich Wien • NPD-BLOG.INFO • INSM Watchblog • Hitler-Blog • Everybody loves Eric Raymond • Dilbert |