Skip to content

Commit

Permalink
Integrate docloader to server package
Browse files Browse the repository at this point in the history
  • Loading branch information
bcui6611 committed Oct 5, 2011
1 parent 09880e1 commit b4b6dd0
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 131 deletions.
22 changes: 22 additions & 0 deletions Makefile.am
@@ -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)


10 changes: 10 additions & 0 deletions configure.ac
@@ -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
Binary file removed testapp.zip
Binary file not shown.
10 changes: 0 additions & 10 deletions testapp/design_docs/cluster_size.json

This file was deleted.

38 changes: 0 additions & 38 deletions testapp/docs/1.json

This file was deleted.

38 changes: 0 additions & 38 deletions testapp/docs/2.json

This file was deleted.

45 changes: 0 additions & 45 deletions testapp/docs/3.json

This file was deleted.

12 changes: 12 additions & 0 deletions wrapper/wrapper.in
@@ -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.