Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bson-cxx"]
path = bson-cxx
url = git://github.com/dwight/bson-cxx.git
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ See the [doc/](doc) folder.

## Building

You will need the [bson-cxx](https://github.com/dwight/bson-cxx) library (a dependancy) to build the tools. It is available on github.

Place it as a peer level directory on disk with bsontools. (That is you will see lines such as `#include "../../../bson-cxx/"` in the source code of these tools...)
The [bson-cxx](https://github.com/dwight/bson-cxx) library (a dependancy) is added as a submodule to this project and should be availble when building the tools.
Initially cloning a repository with --recursive will clone the submodule as well.

To build with scons, assuming it is installed, just type "scons".

Expand All @@ -43,7 +42,3 @@ Some automated tests would be real helpful for example...
## Support

For help try posting to the [BSON Google Groups forum](https://groups.google.com/forum/#!forum/bson).




10 changes: 5 additions & 5 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ env.Append(CCFLAGS='-std=c++0x')
env.Program(target = 'hex', source = ["src/bsontools/hex.cpp"])

dep1 = [
"../bson-cxx/src/bson/time_support.cpp",
"../bson-cxx/src/bson/bson.cpp",
"../bson-cxx/src/bson/parse_number.cpp" ]
"bson-cxx/src/bson/time_support.cpp",
"bson-cxx/src/bson/bson.cpp",
"bson-cxx/src/bson/parse_number.cpp" ]

dep2 = [
"../bson-cxx/src/bson/json.cpp",
"../bson-cxx/src/bson/base64.cpp"
"bson-cxx/src/bson/json.cpp",
"bson-cxx/src/bson/base64.cpp"
]

env.Program(target = 'fromcsv', source = ["src/bsontools/fromcsv.cpp"] + dep1)
Expand Down
1 change: 1 addition & 0 deletions bson-cxx
Submodule bson-cxx added at 99e3d0
6 changes: 3 additions & 3 deletions src/bsontools/bsonmain.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <iostream>
#include <fstream>
#include "binary.h"
#include "../../../bson-cxx/src/bson/bsonobj.h"
#include "../../../bson-cxx/src/bson/bsonobjiterator.h"
#include "../../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "../../bson-cxx/src/bson/bsonobj.h"
#include "../../bson-cxx/src/bson/bsonobjiterator.h"
#include "../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "cmdline.h"
#include <deque>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion src/bsontools/cmdline.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <set>
#include <vector>
#include "../../../bson-cxx/src/bson/parse_number.h"
#include "../../bson-cxx/src/bson/parse_number.h"

using namespace _bson;
using namespace std;
Expand Down
4 changes: 2 additions & 2 deletions src/bsontools/fromcsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include "binary.h"
#include <iostream>
#include <string>
#include "../../../bson-cxx/src/bson/json.h"
#include "../../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "../../bson-cxx/src/bson/json.h"
#include "../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "cmdline.h"
#include "parse_types.h"

Expand Down
4 changes: 2 additions & 2 deletions src/bsontools/fromjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <iostream>
#include <string>
#include "binary.h"
#include "../../../bson-cxx/src/bson/json.h"
#include "../../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "../../bson-cxx/src/bson/json.h"
#include "../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "cmdline.h"

using namespace std;
Expand Down
6 changes: 3 additions & 3 deletions src/bsontools/fromxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#include <iostream>
#include <string>
#include "binary.h"
#include "../../../bson-cxx/src/bson/json.h"
#include "../../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "../../../bson-cxx/src/bson/bsonobjiterator.h"
#include "../../bson-cxx/src/bson/json.h"
#include "../../bson-cxx/src/bson/bsonobjbuilder.h"
#include "../../bson-cxx/src/bson/bsonobjiterator.h"
#include "cmdline.h"
#include "parse_types.h"
#include "../util/str.h"
Expand Down
4 changes: 2 additions & 2 deletions src/bsontools/hex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <iostream>
#include "stdio.h"
#include "binary.h"
#include "../../../bson-cxx/src/bson/hex.h"
#include "../../../bson-cxx/src/bson/endian.h"
#include "../../bson-cxx/src/bson/hex.h"
#include "../../bson-cxx/src/bson/endian.h"
#include "cmdline.h"

using namespace std;
Expand Down