Running Perl scripts on every build.

Running Perl scripts on every build.

Post by mike » Thu, 25 Dec 2003 04:35:50


I've recently installed the perl plugin for CodeWarrior. When I do a
build any perl scripts in the project are run. They only run if they
are modified or touched. I would like my script to run on every build
automatically. Is that possible? Would the "CodeWarrior Scripting
Reference" help me answer these types of questions? My tools are for
the MCORE micro, running on XP. Thanks.

Mike
 
 
 

Running Perl scripts on every build.

Post by Erich Styg » Sat, 27 Dec 2003 18:51:53

Mike,
there are CodeWarrior plugins 'BatchRunnerPreLinker' and
'BatchRunnerPostLinker' which is able to run a batch job (e.g. your perl
job) before and after linking.
Would this be something for you?
If yes: they are distributied with most CodeWarrior releases (e.g. CW08 V3.0
or CW12 V3.0).
You can get the plugins out of the CW08 V3.0 or CW12 V3.0 (for download on
www.metrowerks.com, download page). However, this are full product installs
(over 120MB), so I hope you have a fast internet connection. Then you can
extract the files from the Plugins/compiler, Preference_panel folders.

Erich

 
 
 

Running Perl scripts on every build.

Post by mike » Wed, 31 Dec 2003 23:26:07

Yes this looks like it will do what I want.

I've downloaded CW12 V3.0 and see these files:
Plugins\Linker\BatchRunnerPostlinker.dll
Plugins\Linker\BatchRunnerPrelinker.dll
Plugins\preference_panel\PBatchRunnerPostLinker.dll
Plugins\preference_panel\PBatchRunnerPreLinker.dll

I guess I have to copy those files to the same folders for the MCORE
version. What do I do after that? Thanks.

Mike