diff options
author | Mike Gerwitz <gerwitzm@lovullo.com> | 2014-04-23 15:33:44 -0400 |
---|---|---|
committer | Mike Gerwitz <gerwitzm@lovullo.com> | 2014-04-23 15:34:57 -0400 |
commit | 78a06d2d8e416c61b877d082a37cc241d7720519 (patch) | |
tree | a337289cca1548d927968f3de9cd9a5dd2a6b190 /tools | |
parent | c1c53493852b8789ceed2813082ab8d465e7ed1d (diff) | |
download | liza-78a06d2d8e416c61b877d082a37cc241d7720519.tar.gz liza-78a06d2d8e416c61b877d082a37cc241d7720519.tar.bz2 liza-78a06d2d8e416c61b877d082a37cc241d7720519.zip |
gen-index now uses relative path instead of __dirname
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gen-index | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gen-index b/tools/gen-index index 3b2d618..7d78470 100755 --- a/tools/gen-index +++ b/tools/gen-index @@ -32,13 +32,13 @@ EOH # generate require for each module for module in "$destpath"/!(index).js; do modname="$( basename "$module" .js )" - echo " '$modname': require( __dirname + '/$modname' )," + echo " '$modname': require( './$modname' )," done # include index.js for any sub-directories (namespace) for dir in $( find "$destpath" -maxdepth 1 -mindepth 1 -type d ); do ns=$( basename "$dir" ) - echo " '$ns': require( __dirname + '/$ns' )," + echo " '$ns': require( './$ns' )," done echo '};' |