[openib-general] Initial Plan for userspace git trees

Michael S. Tsirkin mst at mellanox.co.il
Mon Nov 27 04:18:09 PST 2006


Mutt Label Removed By VIM
> >> - Use git-describe to get symbolic version name. This finds the closest tag,
> >>   so you'll get vofed-1.1 if that's what you checked out.
> >>   Useful for e.g. opensm Makefile.
> >>     
> >
> > What do you mean? To use this in Makefile as "version generator"
> > (instead of osm_svn_revision.h stuff)?
>
> This is a good point.
> I think we need a standardized method for each of our libs be providing 
> a "version" function.
> We then should be able to automatically update that version with both 
> the "lib version" and the git version (last commit date?).

IMO lib versioning is not something you should do automatically - versions there
have meaning for backward compatibility etc.

For e.g. opensm, git-describe probably does exectly what you want already.

-- 
MST




More information about the general mailing list