User forums > Using Code::Blocks

Help? My pre build script fails; but only under CB.

(1/3) > >>

rioki:
Hi,

I am trying to get my post pre script to run, it works in cmd but not under CB.

I am running:
  - Window XP SP3
  - CB 8.02 (Build: Feb 27 2008 20:59:09)

Basically everything works as expected except if I am trying to run


--- Code: ---rd /Q /S $(TARGET_OBJECT_DIR)\*

--- End code ---

The entire script is:


--- Code: ---xcopy /Y $(TARGET_OUTPUT_BASENAME).nsi $(TARGET_OBJECT_DIR)
mkdir $(TARGET_OBJECT_DIR)include
mkdir $(TARGET_OBJECT_DIR)lib
mkdir $(TARGET_OBJECT_DIR)bin
xcopy /Y ..\..\Tools\IcedResource\bin\$(TARGET_NAME)\IcedResource.exe $(TARGET_OBJECT_DIR)\bin
$(#nsis)\makensis $(TARGET_OBJECT_DIR)\$(TARGET_OUTPUT_BASENAME).nsi
xcopy /Y $(TARGET_OBJECT_DIR)$(TARGET_OUTPUT_BASENAME).exe $(TARGET_OUTPUT_DIR)
rd /S /Q $(TARGET_OBJECT_DIR)\*

--- End code ---

When I execute the code under windows command line all works as expected...

I kinda hit a wall here, any help or ideas are very very welcome. I am thinking of writing a shell script and pass that by MSys (bash)...

MortenMacFly:

--- Quote from: rioki on August 29, 2009, 08:21:22 pm ---
--- Code: ---rd /Q /S $(TARGET_OBJECT_DIR)\*

--- End code ---

--- End quote ---
What do you see at the command line if you put an echo before that?

rioki:

--- Quote from: MortenMacFly on August 29, 2009, 08:27:07 pm ---
--- Quote from: rioki on August 29, 2009, 08:21:22 pm ---
--- Code: ---rd /Q /S $(TARGET_OBJECT_DIR)\*

--- End code ---

--- End quote ---
What do you see at the command line if you put an echo before that?

--- End quote ---


--- Code: ---echo rd /S /Q $(TARGET_OBJECT_DIR)\*

--- End code ---

gives:


--- Code: ---echo rd /S /Q obj\Debug\*
Execution of 'echo rd /S /Q obj\Debug\*' in 'D:\Development\IcedLiquid\Trunk\IcedBlue\Installers\IcedBlue-SDK' failed.

--- End code ---

Could that be that something is not properly escaped?

rioki:
It is even worse:


--- Code: ---echo "Hello World"
Execution of 'echo "Hello World"' in 'D:\Development\IcedLiquid\Trunk\IcedBlue\Installers\IcedBlue-SDK' failed.

--- End code ---

Something is definitely broken (on my end?)...

rioki:
Oddly enough:


--- Code: ---mkdir $(TDAY)

--- End code ---

Works like a charm...

Navigation

[0] Message Index

[#] Next page

Go to full version