Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modify Makefile to create binary package

  • Loading branch information...
commit 27dcb7611da09be499c4366ea319039a006fb522 1 parent 4e9201d
@bcui6611 authored
Showing with 39 additions and 4 deletions.
  1. +39 −4 Makefile.am
  2. 0  healthChecker.py → healthChecker
View
43 Makefile.am
@@ -1,8 +1,28 @@
-COUCHBASE_PYTHON_LIB = ../couchbase-python-client/couchbase
+TMP_DIR = ./tmp
+TMP_VER = $(TMP_DIR)/version_num.tmp
+
+CHEETAH_LIB = ./cheetah
+JSON_LIB = ./simplejson
default:
pythonlibdir=$(libdir)/python
+pythonlib_DATA = \
+ analyzer.py \
+ bucket_stats.py \
+ buckets.py \
+ cluster_stats.py \
+ collector.py \
+ diskqueue_stats.py \
+ info.py \
+ listservers.py \
+ mc_bin_client.py \
+ memcacheConstants.py \
+ node_stats.py \
+ restclient.py \
+ stats_buffer.py \
+ usage.py \
+ util_cli.py
pythonlib_SCRIPTS= healthChecker
@@ -14,9 +34,24 @@ ${PYTHON_TOOLS}: wrapper/wrapper
CLEANFILES = ${PYTHON_TOOLS}
bin_SCRIPTS = ${PYTHON_TOOLS}
-EXTRA_DIST = $(pythonlib_SCRIPTS)
+EXTRA_DIST = $(pythonlib_DATA) $(pythonlib_SCRIPTS) LICENSE
-install-data-hook:
- cp -rf $(COUCHBASE_PYTHON_LIB) $(pythonlibdir)
+clean-local:
+ rm -f membase*tar.gz
+ rm -rf $(TMP_DIR)
+install-data-hook:
+ cp -rf $(CHEETAH_LIB) $(JSON_LIB) $(pythonlibdir)
+
+bdist:
+ test -d $(TMP_DIR) || mkdir $(TMP_DIR)
+ git describe | sed s/-/_/g > $(TMP_VER)
+ rm -f ./healthChecker_*.tar.gz
+ rm -rf $(TMP_DIR)/healthChecker
+ mkdir -p $(TMP_DIR)/healthChecker/simplejson
+ cp healthChecker *.py $(TMP_DIR)/healthChecker
+ cp -rf $(CHEETAH_LIB) $(JSON_LIB) LICENSE $(TMP_DIR)/healthChecker
+ (cd $(TMP_DIR); tar cf - healthChecker) | gzip -9 > healtherChecker_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
+ echo created healtherChecker_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
+ rm -rf $(TMP_DIR)
View
0  healthChecker.py → healthChecker
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.