Files
meteor/scripts/admin/build-install-script.js
2013-03-19 18:19:31 -07:00

15 lines
433 B
JavaScript

// Running this script outputs the script that will be served at
// https://install.meteor.com/
var fs = require('fs');
var path = require('path');
var template = fs.readFileSync(
path.join(__dirname, 'install-template.sh'), 'utf8');
var bootstrap = fs.readFileSync(
path.join(__dirname, 'meteor-bootstrap.sh'), 'utf8');
process.stdout.write(
template.replace(/SHARHERE/,
bootstrap.replace(/^/gm, 'X')));