cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

Build/compile curl from anywhere #224

Closed webpro closed 10 years ago

webpro commented 10 years ago

It would be convenient to run the make.sh script from anywhere (which is currently not possible because of the call to ./compile). One way to do this:

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

and then

./compile.sh "$tmpfile" "$opt" > "$out"

becomes

"$DIR"/compile.sh "$tmpfile" "$opt" > "$out"

Let me know if you like something like this and I'd be happy to submit a PR.

unscriptable commented 10 years ago

Please do! :)