aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/peercast/files/peercast.sh.in
blob: f92d6e3557b0cfd1e40a5cd72a58403dde1ec336 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ ! -d "$HOME/.peercast" ]; then
	mkdir "$HOME/.peercast" || exit 1
	ln -s "%%DATADIR%%/html" "%%PREFIX%%/libexec/peercast" "$HOME/.peercast" || exit 1
fi

cd "$HOME/.peercast" || exit 1
exec ./peercast "$@"