Topic : How to autorun a batch script at build beginning of a Ride7 project ?

Forum : Ride IDE

Original Post
Post Information Post
January 5, 2011 - 4:34pm
Guest

Hi,

I would find a way to automatically tag source files at build event with SVN informations (version, date, modified or not, etc...) using SubWCRev.

Is it possible to autorun a batch script at build beginning of a Ride7 project ?
(in the aim of using my working batch script which use SubWCRev).

I saw a way to launch script at event in Ride7 but it is only for JScript which, i guess, wont let me to launch a batch script.

Thanks,

Rémy

Replies
Post Information Post
+1
0
-1
January 6, 2011 - 9:52am
Raisonance Support Team

Hi Rémy,

Currently Ride does not offer pre/post-build or pre-link events.
However in your case you can probably use the built-in features of svn and of the C compiler to place some build information in the project:
- Use the $Id$ svn tags in yuor project. You can place a string at ana absolute memory location with it.
- Also the __DATE__ C preprocessor macro can help a lot.

These are simple but useful tools to keep track of your versions. However, it will not help you keep the "modified or not" status of your files.

I hope this helps,