[fixed] Ubuntu's retarded shell breaks buildAllExamples.sh

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

[fixed] Ubuntu's retarded shell breaks buildAllExamples.sh

Post by randomMesh »

The 'examples/buildAllExamples.sh' script is broken in SVN trunk revision 1919 under Ubuntu 8.10.

You get an output like this:

Code: Select all

Building 01.HelloWorld
./buildAllExamples.sh: 8: pushd: not found
./buildAllExamples.sh: 8: popd: not found
The default shell in Ubuntu, dash, doesn't have these commands.

I fixed it by changing the first line of the script to

Code: Select all

#!/bin/bash
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try the makefile, allows for parallel builds! I'll fix it, though
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Fixed your title for you. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

rogerborg wrote:Fixed your title for you. ;)
It's the script writer's fault when he uses /bin/sh and requires bash.
Post Reply