unix - Can CVS repository commit command pass command line arguments to the files? -


is there way pass command line arguments files present in cvs repository. say, cvs repository has .tcl file prints version number , date along other processing. don't want hardcode version number , date file. whenever modifies file , checks cvs, can add tag version number , date modify tcl file accordingly?

say have test.tcl

puts "version number: **v1.2** puts "date: 05/05/10" .... ..... 

if modify file , want commit cvs, saying "cvs commit test.tcl v1.3 06/19/15" or that

the test.tcl should committed in cvs , should be:

    puts "version number: **v1.3**     puts "date: 06/19/15"  ...... ...... 

is there way done?

first hint: keyword substituion

if want version numbers or commit time - cvs has enraged linus torvalds started design git: can change files on commit. see example $id$ , others @ this mit doc page.

second hint: see running arbitrary scripts under cvs, title says all.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -