monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: Do .mt-attrs still work?


From: Peter Simons
Subject: [Monotone-devel] Re: Do .mt-attrs still work?
Date: 18 Dec 2004 22:07:06 +0100

Richard Levitte writes:

 > There's nothing about m4proc in std_hooks.lua.

No, that's a function I define in MT/monotonerc:

  attr_functions["m4proc"] =
    function(fname, arg)
       local stem = string.gsub(fname, "^(.+)%.m4$", "%1")
       if (stem ~= fname) then
         os.execute(string.format("rm -f %s && m4 -DHOSTNAME=$HOSTNAME 
-DUSER=$USER <%s >%s && chmod -w %s", stem, fname, stem, stem))
       end
    end

It used to work just fine -- until I updated to the latest
head.

Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]