HyriseSQLParser/deploy_to_hyrise.sh

22 lines
343 B
Bash
Raw Normal View History

2014-11-10 22:33:03 +01:00
#!/bin/sh
# Usage: deploy_to_hyrise.sh path/to/hyrise.git
2014-11-12 11:18:43 +01:00
BUILD_PATH=$(readlink -f $(dirname $0))/build
2014-11-10 22:33:03 +01:00
HYRISE_PATH=$1
SQL_PATH=${HYRISE_PATH}/src/lib/access/sql
if [ ! -d $SQL_PATH ]; then
echo "Could not verify Hyrise path! ${HYRISE_PATH}"
exit
fi
make -C src/ build
2014-11-10 22:33:03 +01:00
rm ${SQL_PATH}/parser/*
cp ${BUILD_PATH}/* ${SQL_PATH}/parser/