ports/www/wikicalc/files/setup.sh.in
2021-04-06 16:31:13 +02:00

24 lines
304 B
Bash

#!/bin/sh
ask_noyes()
{
local key
echo -n "$1 [y/N]: "
read key
case "$key" in
[Yy]*)
return 0;;
*)
return 1;;
esac
}
echo "This script will setup current directory for wikicalc."
if ask_noyes "Are you ready?"; then
ln -s -f %%DATADIR%%/* .
echo "done."
else
echo "Stopped."
exit 1
fi