Skip to content

Commit

Permalink
Revert "Use symlinks instead of copying files upon switch."
Browse files Browse the repository at this point in the history
This reverts commit 0895ea3.
  • Loading branch information
tj committed Oct 8, 2012
1 parent 77946bb commit d36c2b8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/n
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ install_node() {
# activate
local dir=$VERSIONS_DIR/$version
if test -d $dir; then
# symlink everything, purge old copies or symlinks
for d in bin lib share include; do
rm -rf $N_PREFIX/$d
ln -s $dir/$d $N_PREFIX/$d
done
# TODO: refactor, this is lame
cd $dir \
&& mkdir -p $N_PREFIX/lib/node \
&& cp -fR $dir/include/node $N_PREFIX/include \
&& cp -fR $dir/bin/* $N_PREFIX/bin \
&& cp -fR $dir/lib/node/* $N_PREFIX/lib/node/ .
# install
else
local tarball="node-v$version.tar.gz"
Expand Down

0 comments on commit d36c2b8

Please sign in to comment.