Author Topic: launch script/batch at end of process  (Read 4382 times)

Offline winz

  • Multiple posting newcomer
  • *
  • Posts: 14
launch script/batch at end of process
« on: February 07, 2011, 11:15:28 am »
Hi,

I want the computer 'beep' when a full compilation is done. I want that occur after linking operation in case of success but also if the compilation failed during compilation or linking operation.

For that I expected to call a batch (I am under win7) with a simple beep function.

I am using my own makefile (I am compiling Qt projects, the makefile is built by an external tool), so I cannot use the project build option > pre/post build step

Do you know if it is possible and how to do that?


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: launch script/batch at end of process
« Reply #1 on: February 07, 2011, 11:25:22 am »
I am using my own makefile (I am compiling Qt projects, the makefile is built by an external tool), so I cannot use the project build option > pre/post build step

Why not ?

Offline winz

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: launch script/batch at end of process
« Reply #2 on: February 07, 2011, 11:33:41 am »
sorry, of course I could but I already call a batch with some options when I configure my own makefile.
but in both case (if I call the batch with some makfile options or with C::B options) the batch is only called in case of successful compilation & linkage.

My compilation takes about 5mn and I would like to do some secondary job during this time and to be warn as soon current process is done... even in case of error

Offline winz

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: launch script/batch at end of process
« Reply #3 on: February 07, 2011, 03:03:05 pm »
If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: launch script/batch at end of process
« Reply #4 on: February 07, 2011, 03:08:44 pm »
If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

State your Code::Blocks version; because it is possible to use post/pre steps with a makefile the last time I checked.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: launch script/batch at end of process
« Reply #5 on: February 07, 2011, 03:12:40 pm »
If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

State your Code::Blocks version; because it is possible to use post/pre steps with a makefile the last time I checked.

Tim S.
If I understand right, the problem is, that a failed build does not call the postbuild steps (obviously) and therefore can not play a sound, beep or whatever.

Offline winz

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: launch script/batch at end of process
« Reply #6 on: February 07, 2011, 03:21:27 pm »
That's it!

I'm using  Nightly builds 6931

post/pre steps with user makefile work fine but, as you said, a failed build does not call the postbuild steps
I am looking for an other c::b option, a c::b plugin or an advice about gcc/makefile switch
« Last Edit: February 07, 2011, 09:29:05 pm by winz »