#!/bin/sh

cd ..

rm -r /usr/local/etc/translate
mkdir -p /usr/local/etc/translate/bin

ln -s `pwd`/app /usr/local/etc/translate/app
ln -s `pwd`/etc /usr/local/etc/translate/etc
ln -s `pwd`/lib /usr/local/etc/translate/lib
ln -s `pwd`/plugins /usr/local/etc/translate/plugins
ln -s `pwd`/rss /usr/local/etc/translate/rss
ln -s `pwd`/www /usr/local/etc/translate/www

cd bin
for f in *; do ln -s `pwd`/$f /usr/local/etc/translate/bin/$f; done

cd /usr/local/etc/translate/bin
ln -s ex_module msdl
ln -s ex_module flac
ln -s ex_module xcode
ln -s ex_module toutf8
ln -s ex_module flvstreamer
