There is good news for all eagle users that use subversion to keep
track of there eagle projects and want to put revision information
into there boards and schematics.
I know, that is already possible by inserting subversion keywords into
eagle texts or (global) attributes.
But who wants to see something like "$Revision: 1234 $" on his or her
board?
With the soon to be released Subversion 1.8.0 it will be possible to
get rid of the "$keyword: $" bracket.
For the following example I will use svn command line tools because
its easier to document, but you can use your prefered GUI client
accordingly.
Let's start then:
In a subversion working copy create a new eagle board file (ckw.brd)
and add a global attribute
attribute * CKW1 '$ckw1:$'
save the file and
svn add ckw.brd
the file into version control.
create a text file (cwk.txt) with the following context (don't know if
it is possible without a text file. I didn't really try because of the
quotation marks.)
ckw1="/><attribute%_name="SVN-R"%_value="%r"/><attribute%_name="TAIL1"%_value="
(for the meaning of %_ and %r placeholders see: 'svn help propset')
then set the property
svn propset svn:keywords -F ckw.txt ckw.brd
and commit the file
svn commit cwk.brd
looking at the global attributes in ckw.brd now, you will see three
global attributes:
CKW1 '$ckw1: '
SVN-R '12345'
TAIL1 ' $'
It's a bit of a hack because we manipulate the xml structure, and end
up with two additional attributes.
If you want to add more of the placeholders subversion provides for
use in a custom keyword, be aware that there is a maximal expanded
keyword length off 255 characters.
--
Lorenz