Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify file on check in

Status
Not open for further replies.

voidptr

Programmer
Jun 6, 2003
1
DE
Hello!

A couple weeks ago I had the following question and got
the following answer (see below). Anyway...As you can see
from my former reply I didn't get quite figured out how
that software worked even though I am no inexperienced
user... However that may be... I still have the same
problem:
We have NC-files here. When they are checked in they are
supposed to get a comment with the newest label. Something
like this:

; Version 2.3.12
G00G90 x1y2z3
....

The label would be 2.3.12 in this case. Can anybody tell
me how to do this with VSS, a third party product, the
product mentioned below, a script or...

(The problem is
not to add a label to a file or a project or how that
works. What I want is, that the file I check in is
modified itself during the check in procedure. I want the
file itself to be modified.
If the file has a label I want that there is text added
(comment in the terms of the used programming language) on
the first line of the file.)

What I search is something like keyword expansion, just a
little more powerful. I want to replace keywords with my
own contents (the label and not the internal revision
number for example).


Thanks
void*
 
voidptr,

keyword expansion is your answer.
Please read the manuals how the implement keyword expansion.
It will be to large to describe here.
It might be a little tricky to get it working.

Regards,

Madere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top