#!/bin/bash
mkdir /var/tmp/tytd-temp
mv remove /var/tmp/tytd-temp/remove
mv mono-powerpc.tar.gz /var/tmp/tytd-temp/mono-powerpc.tar.gz
mv tytd /var/tmp/tytd-temp/tytd
mv ytdrun /var/tmp/tytd-temp/ytdrun
mv tytd-upgrade /var/tmp/tytd-temp/tytd-upgrade
mv tytd.tar.gz /var/tmp/tytd-temp/tytd.tar.gz
cd /
tar -xvzf /var/tmp/tytd-temp/mono-powerpc.tar.gz .
mkdir -p /usr/local/lib/tytd
mkdir -p /usr/local/bin
cp /var/tmp/tytd-temp/tytd /usr/local/bin/tytd
cp /var/tmp/tytd-temp/ytdrun /usr/local/bin/tytd-run
cp /var/tmp/tytd-temp/remove /usr/local/bin/tytd-uninstall
cp /var/tmp/tytd-temp/tytd-upgrade /usr/local/bin/tytd-upgrade
cd /usr/local/lib/tytd
tar -xvzf /var/tmp/tytd-temp/tytd.tar.gz .
rm -rf /var/tmp/tytd-temp
