Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (14 sloc) 458 Bytes
#!/bin/bash
if [ ! -d work -o ! -d pebsim -o ! -d id ]; then
echo "not a landslide repository?"
exit 1
fi
function die() {
echo "error $1"
exit 1
}
sed -i "s:SIMICS_WORKSPACE=.*:SIMICS_WORKSPACE=$PWD/work:" work/config.mk || die 1
sed -i "s:add-module-directory.*:add-module-directory $PWD/work/amd64-linux/lib:" pebsim/config.simics || die 2
sed -i "s:SIMENV=/.*:SIMENV=$PWD/pebsim:" pebsim/simics4 || die 3
echo "$0: success."
exit 0