#!/bin/sh
PREFIX=$HOME/dist
mkdir -p $PREFIX/src
cd $PREFIX/src
GREP_RESULT=`grep $PREFIX/bin $HOME/.bashrc`
if test -z "$GREP_RESULT"; then
 echo "export PATH=$PREFIX/bin:$PATH" >> $HOME/.bashrc
fi
GREP_RESULT=`grep $PREFIX/lib $HOME/.bashrc`
if test -z "$GREP_RESULT"; then
 echo "export LD_LIBRARY_PATH=$PREFIX/lib" >> $HOME/.bashrc
fi
wget -Nc http://ftp.de.debian.org/debian/pool/main/x/xchat/xchat-common_2.0.5-3_all.deb
wget -Nc http://ftp.de.debian.org/debian/pool/main/x/xchat/xchat_2.0.5-3_i386.deb
rm -rf deb/
dpkg -x xchat-common_2.0.5-3_all.deb deb/
dpkg -x xchat_2.0.5-3_i386.deb deb/
cp -fa deb/usr/* ../
rm -rf deb/
# message
cat <<EOF

to start open a new console, then: xchat
EOF
