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

Run compile.sh from anywhere #229

Closed webpro closed 10 years ago

webpro commented 10 years ago

Yes. It cd's into the dirname of the current script (${BASH_SOURCE[0]}) and then takes the pwd of that, which becomes DIR. This takes symlinks into account and is pretty safe to use.

webpro commented 10 years ago

Oh well, you just merged, thanks!

unscriptable commented 10 years ago

Yah. Looks convoluted, but is the commonly accepted way to do it, I guess. :) Thanks!