Skip to content

Commit

Permalink
at last, remove the symlink monkeypatch for windows - we will now use…
Browse files Browse the repository at this point in the history
… symlinks on vista and above and millstone will handle falling back to copying for XP - refs tilemill-project#1504
  • Loading branch information
Dane Springmeyer committed Sep 13, 2012
1 parent bdd4124 commit 33bb4d9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,8 @@ process.title = 'tilemill';
process.argv[0] = 'node';

if (process.platform === 'win32') {

// HOME is undefined on windows
process.env.HOME = process.env.USERPROFILE;

// don't attempt symlink support at all -- just copy.
// @TODO write a dotfile next to the copy with the link
// "metadata" so we can monkeypatch readlink as well.
var cprSync = require('./lib/fsutil').cprSync;
fs.symlink = function(from,to,cb) {
try {
cprSync(from, to);
return cb();
} catch (err) {
return cb(err);
}
}
}

// Default --config flag to user's home .tilemill.json config file.
Expand Down

0 comments on commit 33bb4d9

Please sign in to comment.