forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conflicts hand resolved. deftemplate and liveui reverted to master, will re-do later. Conflicts: admin/generate-dev-bundle.sh admin/install-s3.sh admin/manifest.json app/meteor/deploy.js app/meteor/meteor.js examples/leaderboard/leaderboard.js examples/unfinished/azrael/client/azrael.js examples/unfinished/azrael/model.js packages/liveui/liveui.js packages/templating/deftemplate.js packages/templating/html_scanner.js tests/minimongo/test.html
- Loading branch information
Showing
30 changed files
with
2,717 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
set -e | ||
|
||
BUNDLE_VERSION=0.0.5 | ||
BUNDLE_VERSION=0.0.6 | ||
UNAME=$(uname) | ||
|
||
if [ "$UNAME" == "Linux" ] ; then | ||
MONGO_NAME="mongodb-linux-x86_64-2.0.1" | ||
MONGO_NAME="mongodb-linux-x86_64-2.0.2" | ||
MONGO_URL="http://fastdl.mongodb.org/linux/${MONGO_NAME}.tgz" | ||
elif [ "$UNAME" == "Darwin" ] ; then | ||
MONGO_NAME="mongodb-osx-x86_64-2.0.1" | ||
MONGO_NAME="mongodb-osx-x86_64-2.0.2" | ||
MONGO_URL="http://fastdl.mongodb.org/osx/${MONGO_NAME}.tgz" | ||
else | ||
echo "This OS not yet supported" | ||
|
@@ -32,41 +32,7 @@ cd build | |
|
||
git clone git://github.com/joyent/node.git | ||
cd node | ||
git checkout v0.6.5 | ||
|
||
# Disable obnoxious print. No easy way to disable that I found. | ||
patch -p1 <<EOF | ||
diff --git a/lib/sys.js b/lib/sys.js | ||
index c37e2a7..d4e71bc 100644 | ||
--- a/lib/sys.js | ||
+++ b/lib/sys.js | ||
@@ -21,15 +21,16 @@ | ||
var util = require('util'); | ||
-var sysWarning; | ||
-if (!sysWarning) { | ||
- sysWarning = 'The "sys" module is now called "util". ' + | ||
- 'It should have a similar interface.'; | ||
- if (process.env.NODE_DEBUG && process.env.NODE_DEBUG.indexOf('sys') != -1) | ||
- console.trace(sysWarning); | ||
- else | ||
- console.error(sysWarning); | ||
-} | ||
+// XXX Meteor disabled | ||
+// var sysWarning; | ||
+// if (!sysWarning) { | ||
+// sysWarning = 'The "sys" module is now called "util". ' + | ||
+// 'It should have a similar interface.'; | ||
+// if (process.env.NODE_DEBUG && process.env.NODE_DEBUG.indexOf('sys') != -1) | ||
+// console.trace(sysWarning); | ||
+// else | ||
+// console.error(sysWarning); | ||
+// } | ||
exports.print = util.print; | ||
exports.puts = util.puts; | ||
EOF | ||
git checkout v0.6.7 | ||
|
||
export JOBS=4 | ||
./configure --prefix="$DIR" | ||
|
@@ -81,29 +47,24 @@ which node | |
which npm | ||
|
||
cd "$DIR/lib/node_modules" | ||
npm install [email protected].2 | ||
npm install [email protected].5 | ||
npm install [email protected] | ||
npm install optimist@0.2.8 | ||
npm install optimist@0.3.1 | ||
npm install [email protected] | ||
npm install coffee-script@1.1.3 | ||
npm install less@1.1.5 | ||
npm install coffee-script@1.2.0 | ||
npm install less@1.2.0 | ||
npm install [email protected] | ||
npm install [email protected].12 | ||
npm install [email protected].2 | ||
npm install [email protected].13 | ||
npm install [email protected].3 | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install uglify-js@1.1.1 | ||
npm install [email protected].0 | ||
npm install uglify-js@1.2.5 | ||
npm install [email protected].1 | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
|
||
# patched versions to allow node 0.6. | ||
# This breaks websockets! | ||
# see https://github.com/nodejitsu/node-http-proxy/pull/152 | ||
# and https://github.com/nodejitsu/node-http-proxy/tree/0.6-compatibility | ||
npm install 'git+https://github.com/lukasberns/node-http-proxy.git#2688d308bc' | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
|
||
|
||
cd "$DIR" | ||
|
@@ -117,7 +78,7 @@ cd mongodb/bin | |
rm bsondump mongodump mongoexport mongofiles mongoimport mongorestore mongos mongosniff mongostat mongotop | ||
cd ../.. | ||
|
||
|
||
# Remove annoying print from socket.io that can't be disabled in config. | ||
patch -p2 <<EOF | ||
diff --git a/dev_bundle/lib/node_modules/socket.io/lib/manager.js b/dev_bundle/lib/node_modules/socket.io/lib/manager.js | ||
index ee2bf49..a68f9cb 100644 | ||
|
@@ -134,6 +95,27 @@ index ee2bf49..a68f9cb 100644 | |
Manager.prototype.__proto__ = EventEmitter.prototype | ||
EOF | ||
|
||
# Patch an issue already fixed in socket.io master, but not released yet. | ||
# https://github.com/LearnBoost/socket.io-client/commit/7155d84af997dcfca418568dfcc778263926d7b2 | ||
cd "$DIR/lib/node_modules/socket.io/node_modules/socket.io-client" | ||
patch -p1 <<EOF | ||
diff --git a/lib/socket.js b/lib/socket.js | ||
index 0f1b1c7..932beaa 100644 | ||
--- a/lib/socket.js | ||
+++ b/lib/socket.js | ||
@@ -405,7 +405,7 @@ | ||
Socket.prototype.onError = function (err) { | ||
if (err && err.advice) { | ||
- if (err.advice === 'reconnect' && this.connected) { | ||
+ if (this.options.reconnect && err.advice === 'reconnect' && this.connected) { | ||
this.disconnect(); | ||
this.reconnect(); | ||
} | ||
EOF | ||
# rebuild | ||
make build | ||
|
||
|
||
echo BUNDLING | ||
|
||
cd "$DIR" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,6 @@ body { | |
color: #333333; | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
|
||
.ui-layout-north { | ||
background: #dddddd; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.