Something went wrong. Try again.
forked from certirocq/certirocq
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839#!/usr/bin/env bash
PLUGIN=$1if [ ! -d "${PLUGIN}" ]then PLUGIN="plugins/${PLUGIN}"fi
PLUGIN_NAME=$(basename "${PLUGIN}")EPATH=
if [ "${PLUGIN_NAME}" == "plugin" ]then echo "Building optimized ML plugin" EPATH="theories/Extraction"else if [ "${PLUGIN_NAME}" == "cplugin" ] then echo "Building vanila ML plugin" EPATH="theories/ExtractionVanilla" else echo "Don't know which plugin to build" exit 1 fi fi
if [ ! -f "${PLUGIN}/extraction/astCommon.ml" ]then bash clean_extraction.sh "${PLUGIN}"else if [ "${EPATH}/AstCommon.ml" -nt "${PLUGIN}/extraction/astCommon.ml" ] then bash clean_extraction.sh "${PLUGIN}" fifi
cd ${PLUGIN}exec make -f Makefile