- Code: Select all
# Windows
cd CobraWorkspace\Source
bin\build
bin\install-from-workspace
bin\build-compiler-lib
# UnixLike
cd CobraWorkspace/Source
bin/build
bin/install-from-workspace
bin/build-compiler-lib
The bash and batch files formally found in CobraWorkspace\Source are now in CobraWorkspace\Source\bin for better organization. Also, "comp" was renamed to "build".
This means you need to prefix them with "bin\" on Windows and "bin/" on UnixLike as seen above. If you find that troublesome, you can cook up some aliases or scripts for your workspace or even your system. For example, on Mac, I just enter "b" to build in any project I work on:
- Code: Select all
#!/bin/bash
if [ -x ./build ]; then
./build "$@"
elif [ -x ./bin/build ]; then
./bin/build "$@"
elif [ -x ./scripts/build ]; then
./scripts/build "$@"
elif [ -x ./comp ]; then
./comp "$@"
elif [ -f ./build.cobra ]; then
cobra -d build.cobra ~/bin/BuilderBase.cobra -- "$@"
rm -f build.exe*
elif [ -f *.proj ]; then
xbuild "$@"
else
echo 'error: no ./build or ./bin/build found to execute at:' `pwd`
fi
I have tested on Mono+Mac and .NET+Windows. If you have any problems or questions, let me know.