#!/bin/bash check_dependency() { echo -n "checking $1... " if command -v $1 >/dev/null 2>&1; then echo "found" else echo "missing" missing="$1 " fi } # checking dependencies check_dependency git check_dependency cmake check_dependency g++ check_dependency gcc if [ -z ${missing+x} ]; then echo "All dependencies found" else echo Missing dependencies $missing exit 1 fi echo Setting up local user ACT installation source configure_environment.sh mkdir -p $ACT_HOME here=$(pwd) srcfolder=$here/src echo Building core library git clone https://github.com/asyncvlsi/act.git $srcfolder/act cd $srcfolder/act export VLSI_TOOLS_SRC=$(pwd) ./configure $ACT_HOME ./build make install make runtest cd $here echo Building stdlib git clone https://github.com/asyncvlsi/stdlib.git $srcfolder/stdlib cd $srcfolder/stdlib make install cd $here echo Building annotation library git clone https://github.com/asyncvlsi/annotate.git $srcfolder/annotate cd $srcfolder/annotate make install_inc make depend make make install cd $here echo Building actsim git clone https://github.com/TheBitFighter/actsim/ -b set_rework --recursive $srcfolder/actsim cd $srcfolder/actsim ./configure ./build.sh cd $here