bugmake - Bugs: bug #18834, VCS Variable expansion

 
 

bug #18834: VCS Variable expansion

Submitted by:  Jim Hanley <dgtlrift>
Submitted on:  Fri 19 Jan 2007 06:00:27 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 19 Jan 2007 06:00:27 PM UTC, original submission:

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

Jim Hanley <dgtlrift>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dgtlrift (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Jan 2007 06:00:27 PM UTCdgtlriftCarbon-Copy-=>Added dgtlrift

    Back to the top


    Powered by Savane 3.1-cleanup1