#!/bin/sh
if [ -z "$1" ]; then
echo "Please give one of these libs as an argument:"
ls -l /usr/local/lib/parallelstarter/ | grep "^d" | awk '{ print $9 }'
exit 0
fi
echo "Setting up parallelstarter to use with $1 in this directory."
echo "Press CTRL-C now to stop or wait 5s to continue."
sleep 5
echo
if [ ! -e parallelstarter.setup ]; then
echo -n "Copying "
cp -v "/usr/local/lib/parallelstarter/$1/parallelstarter.setup" .
else
echo "parallelstarter.setup already exists; it won't be overwritten. You may find the default file in /usr/local/lib/parallelstarter/$1."
fi
if [ -e parallelstarter.prepare_process_start ]; then
rm -v "parallelstarter.prepare_process_start"
fi
echo -n "Linking "
ln -sv "/usr/local/lib/parallelstarter/$1/parallelstarter.prepare_process_start"
if [ -e parallelstarter.cleanup ]; then
rm -v "parallelstarter.cleanup"
fi
echo -n "Linking "
ln -sv "/usr/local/lib/parallelstarter/$1/parallelstarter.cleanup"
echo "done."
echo
echo "Edit parallelstarter.setup to your needs, please."
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>