Permalink
Browse files

[fix] symlink script, make sure dirs exist

  • Loading branch information...
Swaagie committed Apr 3, 2015
1 parent e1cf1fe commit 2d64c30bca693ed1fc4e1857f400a4452df6d73b
Showing with 12 additions and 7 deletions.
  1. +12 −7 symlink.sh
View
@@ -17,20 +17,25 @@ bigpipe/diagnostics-pagelet bigpipe/fittings
# dependencies so they all use the pagelet's master branch
#
rm -rf $ROOT/node_modules/bigpipe.js/node_modules/fittings
-ln -s $ROOT/node_modules/fittings $ROOT/node_modules/bigpipe.js/node_modules
+mkdir -p $ROOT/node_modules/bigpipe.js/node_modules/fittings
+ln -s $ROOT/node_modules/fittings $ROOT/node_modules/bigpipe.js/node_modules/fittings
rm -rf $ROOT/node_modules/bootstrap-pagelet/node_modules/pagelet
-ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/bootstrap-pagelet/node_modules
+mkdir -p $ROOT/node_modules/bootstrap-pagelet/node_modules
+ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/bootstrap-pagelet/node_modules/pagelet
rm -rf $ROOT/node_modules/diagnostics-pagelet/node_modules/pagelet
-ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/diagnostics-pagelet/node_modules
+mkdir -p $ROOT/node_modules/diagnostics-pagelet/node_modules
+ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/diagnostics-pagelet/node_modules/pagelet
rm -rf $ROOT/node_modules/404-pagelet/node_modules/pagelet
rm -rf $ROOT/node_modules/404-pagelet/node_modules/diagnostics-pagelet
-ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/404-pagelet/node_modules
-ln -s $ROOT/node_modules/diagnostics-pagelet $ROOT/node_modules/404-pagelet/node_modules
+mkdir -p $ROOT/node_modules/404-pagelet/node_modules
+ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/404-pagelet/node_modules/pagelet
+ln -s $ROOT/node_modules/diagnostics-pagelet $ROOT/node_modules/404-pagelet/node_modules/diagnostics-pagelet
rm -rf $ROOT/node_modules/500-pagelet/node_modules/pagelet
rm -rf $ROOT/node_modules/500-pagelet/node_modules/diagnostics-pagelet
-ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/500-pagelet/node_modules
-ln -s $ROOT/node_modules/diagnostics-pagelet $ROOT/node_modules/500-pagelet/node_modules
+mkdir -p $ROOT/node_modules/500-pagelet/node_modules
+ln -s $ROOT/node_modules/pagelet $ROOT/node_modules/500-pagelet/node_modules/pagelet
+ln -s $ROOT/node_modules/diagnostics-pagelet $ROOT/node_modules/500-pagelet/node_modules/diagnostics-pagelet

1 comment on commit 2d64c30

@karlwanghn

This comment has been minimized.

Show comment
Hide comment

Please sign in to comment.