#!/bin/sh -x

# Create cps-tools tarball
cp -a conpaas-services/bin cps-tools

cat <<EOF > cps-tools/README
To use the cps-tools (on debian/ubuntu):

   $ apt-get install python python-pycurl
   $ export PYTHONPATH=/path/to/cps-tools
   $ export CONPAAS_CERTS_DIR=/path/to/conpaas/certs
   $ /path/to/cps-tools/cpsclient.xxx http://ip:port command
EOF

cp -a conpaas-services/src/conpaas cps-tools/

# Removing jars as we do not need them for the command line tools
find cps-tools -type f -name \*.jar | xargs rm

# Removing .svn dirs
find cps-tools -type d -name ".svn" | xargs rm -rf

tar czf cps-tools.tar.gz cps-tools

rm -rf cps-tools

echo "cps-tools.tar.gz created"

Add script to create cps-tools tarball
Add script to create cps-tools tarball

git-svn-id: 3c739b8a310a10be68afd4fdd7f3d450bf1457ba@3767 ef35cc4a-2640-4bbf-98bc-65920db7d8ae
