CVS Commit: tools scripts by jhutz

Jeffrey Hutzelman jhutz+ at minbar.fac.cs.cmu.edu
Wed Oct 22 18:48:30 EDT 2014


Update of /afs/cs.cmu.edu/misc/tools/rcs/scripts
In directory minbar.fac.cs.cmu.edu:/afs/cs.cmu.edu/misc/tools/src/scripts

Modified Files:
	PSMake.pm 
Log Message:
PSMake.pm: support extracting package version from git

This adds a new function, pick_git_version(), which attempts to extract
the package version from git.  In addition, pick_version() is renamed to
pick_dir_version() and replaced by a wrapper which tries first git and
then the traditional directory method, and pick_package_and_version() is
enhanced to try git before falling back to 'head' or an unknown version.

Version extraction from git works best when the stem has _not_ already
been modified (e.g. by code in ~/.psmake) to include the version.




More information about the Fac-source-change-log mailing list