2012-10-03 21:51:05 +00:00
|
|
|
#!/bin/sh
|
2011-04-15 23:28:37 +00:00
|
|
|
# Use this script to Download or Update all dependances to their last
|
|
|
|
# developpement version.
|
|
|
|
# The dependances will be placed in the sources directory, so you do not
|
|
|
|
# need to install them on your system at all.
|
|
|
|
|
|
|
|
# Use launch.sh to start poezio directly from here
|
|
|
|
|
2013-03-06 22:15:23 +00:00
|
|
|
function error() {
|
|
|
|
echo -e "\033[1;31mThe script failed to update $1.\033[0m"
|
|
|
|
echo -e "\033[1;31mPlease investigate.\033[0m"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2011-04-15 23:28:37 +00:00
|
|
|
echo 'Updating poezio'
|
2013-03-06 22:15:23 +00:00
|
|
|
git pull origin master || error poezio
|
2011-04-13 00:14:35 +00:00
|
|
|
|
2011-11-08 01:31:44 +00:00
|
|
|
make
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo -e "It seems that you do not have the python development"\
|
|
|
|
"files.\nSearch for a package named python3-dev or python3-devel"\
|
|
|
|
"in your repos."
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
2011-04-13 00:14:35 +00:00
|
|
|
if [ -e "SleekXMPP" ]
|
2013-01-17 16:37:06 +00:00
|
|
|
then
|
|
|
|
echo "Removing the old SleekXMPP"
|
|
|
|
rm -rf SleekXMPP
|
|
|
|
rm src/sleekxmpp
|
2013-03-06 22:15:23 +00:00
|
|
|
git clone https://github.com/fritzy/SleekXMPP.git Sleek || error SleekXMPP
|
2013-01-17 16:37:06 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e "Sleek" ]
|
2011-04-13 00:14:35 +00:00
|
|
|
then
|
|
|
|
echo "Updating SleekXMPP"
|
2013-01-17 16:37:06 +00:00
|
|
|
cd Sleek
|
2013-03-06 22:15:23 +00:00
|
|
|
git pull || error SleekXMPP
|
2011-04-13 00:14:35 +00:00
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
echo "Downloading SleekXMPP"
|
2013-03-06 22:15:23 +00:00
|
|
|
git clone https://github.com/fritzy/SleekXMPP.git Sleek || error SleekXMPP
|
2011-04-13 00:14:35 +00:00
|
|
|
fi
|
2013-01-17 16:37:06 +00:00
|
|
|
|
2012-07-24 16:10:46 +00:00
|
|
|
if [ -e ".dnspython.tgz" ]
|
2011-04-13 00:14:35 +00:00
|
|
|
then
|
2012-07-24 16:10:46 +00:00
|
|
|
if [ -e "dnspython" ]
|
|
|
|
then
|
|
|
|
echo "dnspython up to date"
|
|
|
|
else
|
|
|
|
echo "Restoring dnspython"
|
2012-10-02 21:02:27 +00:00
|
|
|
tar xfz .dnspython.tgz
|
2012-07-24 16:10:46 +00:00
|
|
|
mv dnspython3-1.10.0 dnspython
|
|
|
|
fi
|
2011-04-13 00:14:35 +00:00
|
|
|
else
|
|
|
|
echo "Downloading dnspython"
|
2013-03-06 22:15:23 +00:00
|
|
|
wget -c -q -O .dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz || error dnspython
|
2012-07-24 16:10:46 +00:00
|
|
|
rm -fr dnspython
|
2012-10-02 21:02:27 +00:00
|
|
|
tar xfz .dnspython.tgz
|
2012-07-24 16:10:46 +00:00
|
|
|
mv dnspython3-1.10.0 dnspython
|
2011-04-13 00:14:35 +00:00
|
|
|
fi
|
|
|
|
|
2011-04-21 15:04:37 +00:00
|
|
|
cd src
|
|
|
|
if [ -h "dns" ]
|
2011-04-13 00:14:35 +00:00
|
|
|
then
|
2011-04-17 11:20:37 +00:00
|
|
|
echo 'Link src/dns already exists'
|
|
|
|
else
|
2011-04-13 00:14:35 +00:00
|
|
|
echo "Creating link src/dns"
|
2011-04-21 15:04:37 +00:00
|
|
|
ln -s ../dnspython/dns dns
|
2011-04-13 00:14:35 +00:00
|
|
|
fi
|
2011-04-21 15:04:37 +00:00
|
|
|
if [ -h "sleekxmpp" ]
|
2011-04-13 00:14:35 +00:00
|
|
|
then
|
2011-04-17 11:20:37 +00:00
|
|
|
echo 'Link src/sleekxmpp already exists'
|
|
|
|
else
|
2011-04-13 00:14:35 +00:00
|
|
|
echo "Creating link src/sleekxmpp"
|
2013-01-17 16:37:06 +00:00
|
|
|
ln -s ../Sleek/sleekxmpp sleekxmpp
|
2011-04-13 00:14:35 +00:00
|
|
|
fi
|