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
|