Mattias Gaertner ha scritto:
Indeed, I just found a trick that solves my problem.
Using the command: test$TargetOS().cmd the IDE executes the script
testlinux.cmd or testwin32.cmd for the respective platform.
So, the macro I asked for is not really so useful...
You can not execute a bash script directly. You must execute the shell
and pass the script as parameter. A simple test.$BatchExt() would not
work.
Maybe I am missing something, but for me this works.
If I put the comand "$projpath()/test.sh" in the execution after section
under the Compilation tab of the compiler options dialog, the script is
executed each time the IDE lasts a build of my project. The same works
if I use $projpath()/test.bat (with equivalent commands) under windows.
The script executes the following commands:
#!/bin/sh
strip myappname
ls -ls myappname >> myreport.txt
echo now >> myreport.txt
mv myappname anotherdirectoryname
rm *.o
rm *.a
rm *.ppu
Do you have another example?
no idea about other examples,
thanks
--
tiziano de togni
______________________________________
http://digilander.libero.it/tizzziano/
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus