poezio/update.sh

73 lines
1.6 KiB
Bash
Raw Normal View History

#!/bin/sh
# 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
echo 'Updating poezio'
2011-10-17 21:13:57 +00:00
git pull origin master
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
if [ -e "SleekXMPP" ]
then
echo "Removing the old SleekXMPP"
rm -rf SleekXMPP
rm src/sleekxmpp
git clone https://github.com/fritzy/SleekXMPP.git Sleek
fi
if [ -e "Sleek" ]
then
echo "Updating SleekXMPP"
cd Sleek
2011-10-17 21:13:57 +00:00
git pull
cd ..
else
echo "Downloading SleekXMPP"
git clone https://github.com/fritzy/SleekXMPP.git Sleek
fi
if [ -e ".dnspython.tgz" ]
then
if [ -e "dnspython" ]
then
echo "dnspython up to date"
else
echo "Restoring dnspython"
tar xfz .dnspython.tgz
mv dnspython3-1.10.0 dnspython
fi
else
echo "Downloading dnspython"
wget -c -q -O .dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz
rm -fr dnspython
tar xfz .dnspython.tgz
mv dnspython3-1.10.0 dnspython
fi
2011-04-21 15:04:37 +00:00
cd src
if [ -h "dns" ]
then
2011-04-17 11:20:37 +00:00
echo 'Link src/dns already exists'
else
echo "Creating link src/dns"
2011-04-21 15:04:37 +00:00
ln -s ../dnspython/dns dns
fi
2011-04-21 15:04:37 +00:00
if [ -h "sleekxmpp" ]
then
2011-04-17 11:20:37 +00:00
echo 'Link src/sleekxmpp already exists'
else
echo "Creating link src/sleekxmpp"
ln -s ../Sleek/sleekxmpp sleekxmpp
fi