1 Mar 2008 01:15
Re: [p4] Adding a Changelist # to C++ code...?
Jeff A. Bowles <jab <at> pobox.com>
2008-03-01 00:15:02 GMT
2008-03-01 00:15:02 GMT
He's using "ant" conventions, because anyone who can will use "ant" for Java compilations... But it's a really easy substitution, to instead run a very simple script that runs "sed" (or perl or ...) to replace <at> change.list.number <at> with the exact "p4 changes -m1 -s submitted //depot/codelinename/..." answer. The question itself, is easy to put into the wrong category. It's really a "how do I generate this extra file at build-time to include in the release" question. Take your build-nerd aside and show him/her this thread, couched in this language. - Jeff Bowles ps. I spoke about this at the Perforce 1999 (or was it 2000?) User Conference. I had two versions of that file - the official-build was created at build-time, but the checked-in version in development builds had a different hard-coded string. (Something about how it was built from a development workspace, so the binary wasn't official.) On Tue, Feb 26, 2008 at 12:42 AM, Troughton, Robert <rtroughton <at> midway.com> wrote: > Hi, > > Thanks for the reply - this sounds like exactly what we need. What do I > do with the code that you pseudo'd, though...? Is there somewhere that I > can compile this such that our server will do this? > > Sorry... I've not done much work with Perforce other than using the(Continue reading)
RSS Feed