bug-make
[Top][All Lists]
Advanced

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

[bug #18834] VCS Variable expansion


From: Jim Hanley
Subject: [bug #18834] VCS Variable expansion
Date: Fri, 19 Jan 2007 18:00:29 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9

URL:
  <http://savannah.gnu.org/bugs/?18834>

                 Summary: VCS Variable expansion
                 Project: make
            Submitted by: dgtlrift
            Submitted on: Friday 01/19/2007 at 18:00
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None

    _______________________________________________________

Details:

There are already rules in place to update delta's against SCCS, RCS, etc.

It would be nice if in addition to this there would also be rules to expand
log information within the file.

For example $(vcs_author $<) would expand to nothing if the VCS is not
supported or automatically guess the VCS based on whether there is a
SCCS,RCS,CVS,.svn/_svn path and expand to the user that last checked that
delta.

a well defined API for VCS's could be defined so that the work is actually
done in the VCS library rather then make having to directly support the
interface to various VCSs.

I bring all this up because, I have written a macro that does something
similer to the one described earlier....

define get_author
  $(shell svn info $(1) | grep "Last Changed Author" | awk '{ print $$4 }')
endef

but this is not platform neutral.

These functions would be useful in a situation where gmake is being used to
launch a nightly build process and the nightly dies  and quickly pointing the
finger to the culprit that checked it in.

I could see other similar functions, but I'm sure others can come up with
more.

$(vcs_author $(<))  expands to Last Changed Author
$(vcs_version $(<)) expands to current version/delta of file




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18834>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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