Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Source Control/Version Control for AVR projects

2011-10-28 by Larry Howell

Chuck Hackett wrote:
> Thanks to all for your suggestions.  
> 
> I have installed Subversion and Tortoise SVN and have begun reading the
> documentation and 'finding my way around'.
> 
> One of the things I'm currently looking for is how to embed the version
> number into C source files as a literal, string, etc.
> 

Hi Chuck,

Check the "Keyword Substitution" section in Chapter 3. Advanced Topics 
of the SVN Book.  Basically, this allows string vars for date, version, 
author, etc. to be inserted in your source files that are replaced with 
the string at compile time.  A special var, $Id: $, is a combination of 
all of the others vars, and I've always used it in my files.

Larry

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.