|
From: Ethan M. <merritt@u.washington.edu> - 2013-08-06 18:41:18
|
On Tuesday, August 06, 2013 10:25:33 am Daniel J Sebald wrote: > I just built the most recent version of gnuplot and noticed that the > "last modified" date in the intro refers back to 2012 and is manually > entered. Why can't that automatically be generated? It would be nice > to do this so that when one builds/installs the latest version, upon > launching the program it is immediate clear that the install process was > successful by looking at the "last modified" date. > > Here are some approaches that could be tried: > > 1) There is this configure.in file containing: > > dnl $Id: configure.in,v 1.332 2013/07/18 23:22:17 sfeam Exp $ > > Is that file somehow generated by the CVS/repository to reflect the most > recent modification of the repository? If so, that would be great as it > would also contain a time stamp. Could write a script to search for > that and define LAST_MODIFIED in some header file using the extracted > "2013/07/18 23:22:17" string. > > 2) Is there some way during make to get the most recent date of all the > pertinent files? "make" does date checking, so perhaps there is a make > variable/macro that reflects that. > > 3) Similar to #2, we could maybe write an OS script that does the same > thing by looking for the date of the most recent file in the source tree. > > 4) Ethan keeps the ChangeLog up to date. It would be easy to search for > the most recent date near the top of the file and use that as a > definition for LAST_MODIFIED. The file .../src/Makefile.maint exists for exactly this purpose. It updates the version string based on the most recent date in ChangeLog. This file is included during "make" by gnu make. Possibly you are using some other make program? Ethan > > Dan > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center, K-428 Health Sciences Bldg University of Washington, Seattle 98195-7742 |