BASH: Running bash script from dos

Lets say you have something that ONLY runs in cygwin... ie. the Android NDK makefile

usually you'd call this with cygwin like so:
make APP=[app name]

instead, you could create a bash script (we'll call it _build) file that contains the following:
#!/bin/bash
make APP=$1 $2;

then call this bash script with the following:
bash _build [app name] [-B]

oh, to make sure this works, you'll have to set windows env. 'path' to include c:\cygwin\bin directory.

No comments: