Permalink
Browse files

Integrate docloader to server package

  • Loading branch information...
bcui6611 committed Oct 5, 2011
1 parent 09880e1 commit b4b6dd0ec7a804499126cc29787a8ade849da7c8
Showing with 44 additions and 131 deletions.
  1. +22 −0 Makefile.am
  2. +10 −0 configure.ac
  3. BIN testapp.zip
  4. +0 −10 testapp/design_docs/cluster_size.json
  5. +0 −38 testapp/docs/1.json
  6. +0 −38 testapp/docs/2.json
  7. +0 −45 testapp/docs/3.json
  8. +12 −0 wrapper/wrapper.in
View
@@ -0,0 +1,22 @@
+COUCHBASE_PYTHON_LIB = ../couchbase-python-client/couchbase
+
+default:
+
+pythonlibdir=$(libdir)/python
+
+pythonlib_SCRIPTS= docloader
+
+PYTHON_TOOLS= wrapper/docloader
+
+${PYTHON_TOOLS}: wrapper/wrapper
+ cp $< $@
+
+CLEANFILES = ${PYTHON_TOOLS}
+bin_SCRIPTS = ${PYTHON_TOOLS}
+
+EXTRA_DIST = $(pythonlib_SCRIPTS)
+
+install-data-hook:
+ cp -rf $(COUCHBASE_PYTHON_LIB) $(pythonlibdir)
+
+
View
@@ -0,0 +1,10 @@
+# couchbase-examples
+# Copyright (C) 2011 Couchbase, INC
+# All rights reserved.
+#
+AC_PREREQ(2.59)
+m4_include([m4/version.m4])
+AC_INIT(couchbase-examples, VERSION_NUMBER, bin@couchbase.com)
+AM_INIT_AUTOMAKE
+AC_CONFIG_FILES(Makefile, wrapper/wrapper)
+AC_OUTPUT
View
Binary file not shown.
@@ -1,10 +0,0 @@
-{
- '_id': '_design/cluster_size',
- 'language': 'javascript',
- 'views': {
- 'cluster_size': {
- "map": "function(doc) { if (doc.numNodes ) { emit(doc.numNodes, 1);}}",
- "reduce": "_sum",
- }
- }
-}
View
@@ -1,38 +0,0 @@
-{
- "_id": "007abf9d-f4a7-4001-15e8-26450000041c",
- "_rev": "3-04c15a31dd051965e1a3c5430e8d2055",
- "doc_type": "Stats",
- "uuid": "007abf9d-f4a7-4001-15e8-26450000041c",
- "numNodes": 1,
- "timestamp": "2011-08-19T16:51:43Z",
- "buckets": {
- "total": 8,
- "membase": 8,
- "memcached": 0
- },
- "ram": {
- "total": 12815089664,
- "quotaTotal": 4294967296,
- "quotaUsed": 2147483648
- },
- "dogbowled": "True",
- "gae_state": "done",
- "version": "1.7.0",
- "componentsVersion": {
- "kernel": "2.14.3",
- "os_mon": "2.2.5",
- "stdlib": "1.17.3",
- "mnesia": "4.4.17",
- "sasl": "2.1.9.3",
- "ns_server": "1.7.0"
- },
- "nodes": {
- "uptime": [
- "105142"
- ],
- "os": [
- "windows"
- ]
- },
- "browser": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)"
-}
View
@@ -1,38 +0,0 @@
-{
- "_id": "00bcbb1c-6aa7-4001-15e8-231d000000e2",
- "_rev": "1-104c40cac9fbe67b70b83e027e3ed765",
- "doc_type": "Stats",
- "uuid": "00bcbb1c-6aa7-4001-15e8-231d000000e2",
- "numNodes": 1,
- "timestamp": "2011-08-19T16:51:41Z",
- "buckets": {
- "total": 1,
- "membase": 0,
- "memcached": 1
- },
- "ram": {
- "total": 4293541888,
- "quotaTotal": 3434086400,
- "quotaUsed": 536870912
- },
- "dogbowled": "True",
- "gae_state": "done",
- "version": "1.7.0",
- "componentsVersion": {
- "kernel": "2.14.3",
- "os_mon": "2.2.5",
- "stdlib": "1.17.3",
- "mnesia": "4.4.17",
- "sasl": "2.1.9.3",
- "ns_server": "1.7.0"
- },
- "nodes": {
- "uptime": [
- "685616"
- ],
- "os": [
- "windows"
- ]
- },
- "browser": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0"
-}
View
@@ -1,45 +0,0 @@
-{
- "_id": "0619ef39-fca6-4001-15e8-9c180800275a",
- "_rev": "1-831a36c9cb2bdddb299035fd83daabea",
- "doc_type": "Stats",
- "uuid": "0619ef39-fca6-4001-15e8-9c180800275a",
- "numNodes": 4,
- "timestamp": "2011-08-19T16:51:44Z",
- "buckets": {
- "total": 1,
- "membase": 1,
- "memcached": 0
- },
- "ram": {
- "total": 67414867968,
- "quotaTotal": 4194304000,
- "quotaUsed": 4194304000
- },
- "dogbowled": "True",
- "gae_state": "done",
- "version": "1.7.0",
- "componentsVersion": {
- "kernel": "2.14.3",
- "os_mon": "2.2.5",
- "stdlib": "1.17.3",
- "mnesia": "4.4.17",
- "inets": "5.5.2",
- "sasl": "2.1.9.3",
- "ns_server": "1.7.0"
- },
- "nodes": {
- "uptime": [
- "158950",
- "157937",
- "7479",
- "158421"
- ],
- "os": [
- "x86_64-unknown-linux-gnu",
- "x86_64-unknown-linux-gnu",
- "x86_64-unknown-linux-gnu",
- "x86_64-unknown-linux-gnu"
- ]
- },
- "browser": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18"
-}
View
@@ -0,0 +1,12 @@
+#! /bin/sh
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+root=@libdir@/python
+
+if test -z "${PYTHONPATH}"; then
+ PYTHONPATH=$root
+else
+ PYTHONPATH=$root:${PYTHONPATH}
+fi
+export PYTHONPATH
+exec $root/`basename $0` "$@"

0 comments on commit b4b6dd0

Please sign in to comment.