@Loaden and all other linux users (especially if the shell is not bash):
Can you try this patch for the update-script ?
It should make C::B portable (if it is compile dwith C::B and the directory/file-structure below output or devel is not changed), because it dynamically fetches the APP_DIR variable at runtime, but I did not test it on any other shell.
Index: update
===================================================================
--- update (revision 6620)
+++ update (working copy)
@@ -106,14 +106,14 @@
if [ "x$MSYSTEM" = "x" ] ; then
echo Creating launch-scripts
echo "#!/bin/sh" > output/run.sh
- echo -n "APP_DIR=" >> output/run.sh
- echo `pwd`/output >> output/run.sh
+ echo 'APP_DIR=`dirname "$0"`' >> output/run.sh
+ echo 'APP_DIR=`( cd "$APP_DIR" && pwd )`' >> output/run.sh
echo "export LD_LIBRARY_PATH=\$APP_DIR:\$LD_LIBRARY_PATH" >> output/run.sh
echo "\$APP_DIR/codeblocks \$@" >> output/run.sh
chmod +x output/run.sh
echo "#!/bin/sh" > devel/run.sh
- echo -n "APP_DIR=" >> devel/run.sh
- echo `pwd`/devel >> devel/run.sh
+ echo 'APP_DIR=`dirname "$0"`' >> devel/run.sh
+ echo 'APP_DIR=`( cd "$APP_DIR" && pwd )`' >> devel/run.sh
echo "export LD_LIBRARY_PATH=\$APP_DIR:\$LD_LIBRARY_PATH" >> devel/run.sh
echo "\$APP_DIR/codeblocks \$@" >> devel/run.sh
chmod +x devel/run.sh