summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/docs.py33
-rw-r--r--docs/building.debian.etch.ec2.md3
-rw-r--r--docs/building.md50
-rw-r--r--docs/building.opensolaris.ec2.md3
4 files changed, 71 insertions, 18 deletions
diff --git a/buildscripts/docs.py b/buildscripts/docs.py
new file mode 100644
index 00000000000..b4e213c81d7
--- /dev/null
+++ b/buildscripts/docs.py
@@ -0,0 +1,33 @@
+
+import os
+import markdown
+
+def convertDir( source , dest ):
+
+ if not os.path.exists( dest ):
+ os.mkdir( dest )
+
+ for x in os.listdir( source + "/" ):
+ if not x.endswith( ".md" ):
+ continue
+
+ f = open( source + "/" + x , 'r' )
+ raw = f.read()
+ f.close()
+
+ html = markdown.markdown( raw )
+ print( x )
+
+ o = open( dest + "/" + x.replace( ".md" , ".html" ) , 'w' )
+ o.write( html )
+ o.close()
+
+
+
+def convertMain():
+ convertDir( "docs" , "docs/html" )
+
+if __name__ == "__main__":
+ convertMain()
+
+
diff --git a/docs/building.debian.etch.ec2.md b/docs/building.debian.etch.ec2.md
index 4a96a79bc69..b8175608368 100644
--- a/docs/building.debian.etch.ec2.md
+++ b/docs/building.debian.etch.ec2.md
@@ -1,4 +1,7 @@
+Building on debian etch on ec2
+================
+
ami-f2f6159b
apt-get update
diff --git a/docs/building.md b/docs/building.md
index 03dacdbf958..56943b5269c 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -3,25 +3,26 @@ Building MongoDB
================
SCONS
+---------------
+
+For detail information about building, please see [the wiki](http://www.mongodb.org/display/DOCS/Building).
- For detail information about building, please see:
- http://www.mongodb.org/display/DOCS/Building
+If you want to build everything (mongod, mongo, tools, etc):
- If you want to build everything (mongod, mongo, tools, etc):
+ $ scons .
- $ scons .
+If you only want to build the database:
- If you only want to build the database:
+ $ scons
+
+To install
- $ scons
+ $ scons --prefix=/opt/mongo install
- To install
-
- $ scons --prefix=/opt/mongo install
-
- Please note that prebuilt binaries are available on mongodb.org and may be the easier way to get started.
+Please note that prebuilt binaries are available on [mongodb.org](http://www.mongodb.org/downloads) and may be the easier way to get started.
SCONS TARGETS
+--------------
* mongod
* mongos
@@ -30,11 +31,13 @@ SCONS TARGETS
* all
COMPILER VERSIONS
+--------------
Mongo has been tested with GCC 4.x and Visual Studio 2008 and 2010. Older versions
of GCC may not be happy.
WINDOWS
+--------------
See http://www.mongodb.org/display/DOCS/Building+for+Windows
@@ -47,18 +50,29 @@ WINDOWS
Or download a prebuilt binary for Windows at www.mongodb.org.
UBUNTU
+--------------
+
+ scons libboost-dev libpcre++-dev xulrunner-1.9.1-dev
- scons libboost-dev libpcre++-dev xulrunner-1.9.1-dev
OS X
+--------------
+
+Try homebrew -- brew install mongodb.
- Try homebrew -- brew install mongodb.
FREEBSD
+--------------
+
+Install the following ports:
+
+ * devel/boost
+ * devel/libexecinfo
+ * devel/pcre
+ * lang/spidermonkey
- Install the following ports:
- - devel/boost
- - devel/libexecinfo
- - devel/pcre
- - lang/spidermonkey
+Special Build Notes
+--------------
+ * [debian etch on ec2](building.debian.etch.ec2.html)
+ * [open solaris on ec2](building.opensolaris.ec2.html)
diff --git a/docs/building.opensolaris.ec2.md b/docs/building.opensolaris.ec2.md
index c8278b83a27..2b5fd41d177 100644
--- a/docs/building.opensolaris.ec2.md
+++ b/docs/building.opensolaris.ec2.md
@@ -1,4 +1,7 @@
+Building on open solaris on ec2
+================
+
ami-4133d528