#!/bin/sh
echo "Installing parallelstarter..."
cp -v parallelstarter /usr/local/bin
chmod a+x /usr/local/bin/parallelstarter
cp -v summarize_time /usr/local/bin
chmod a+x /usr/local/bin/summarize_time
cp -v setup_parallelstarter /usr/local/bin
chmod a+x /usr/local/bin/setup_parallelstarter
if [ -e "/usr/local/lib/parallelstarter" ]; then
rm -fvr /usr/local/lib/parallelstarter
fi
mkdir -p /usr/local/lib/parallelstarter
cp -v README /usr/local/lib/parallelstarter
# matsim
cp -Rv matsim /usr/local/lib/parallelstarter
rm -fvr /usr/local/lib/parallelstarter/matsim/CVS
# db_backup
cp -Rv db_backup /usr/local/lib/parallelstarter
if [ ! -e /etc/db_backup ]; then
mkdir /etc/db_backup
mv /usr/local/lib/parallelstarter/db_backup/dbs /etc/db_backup/
else
echo "Config directory '/etc/db_backup/' for db_backup already exists. Please check manually!"
fi
rm -fvr /usr/local/lib/parallelstarter/db_backup/CVS
# biogeme
cp -Rv biogeme /usr/local/lib/parallelstarter
rm -fvr /usr/local/lib/parallelstarter/biogeme/CVS
echo
echo "done."
echo
echo "To use parallelstarter, navigate to a new directory, where you want to save the output of your parallel runs and call setup_parallelstarter."
echo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>