Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2014-04-23 15:33:44 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2014-04-23 15:34:57 -0400
commit78a06d2d8e416c61b877d082a37cc241d7720519 (patch)
treea337289cca1548d927968f3de9cd9a5dd2a6b190 /tools
parentc1c53493852b8789ceed2813082ab8d465e7ed1d (diff)
downloadliza-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-xtools/gen-index4
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 '};'