#!/bin/sh

if [ $# -ne 1 ]
  then
    echo "Usage: generate.sh <destination path>"
    exit 1
fi

mkdir -p temp

cp -r configTokens.json configure.js configure.sh install.sh lex_bot.js package.json processes.json README.md start.sh stop.sh upgrade.sh wpm.json temp

cd temp
tar czf $1/software.tar.gz *
cd ..
rm -r temp
