aboutsummaryrefslogtreecommitdiff
path: root/www/wikicalc/files/setup.sh.in
blob: a0749b8abf12be65d32ed2b489aa91c4f6e2b05f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# $FreeBSD$

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