poezio/update.sh

42 lines
977 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 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'
hg pull -u || echo 'You do not seem to be in poezios directory. Exiting.' && exit 1
if [ -e "SleekXMPP" ]
then
echo "Updating SleekXMPP"
cd SleekXMPP
git pull
cd ..
else
echo "Downloading SleekXMPP"
git clone git://github.com/louiz/SleekXMPP.git
fi
if [ -e "dnspython" ]
then
echo "Updating dnspython"
cd dnspython
hg pull -u
cd ..
else
echo "Downloading dnspython"
hg clone http://hg.louiz.org/dnspython
fi
if [ ! -e "src/dns" ]
then
echo "Creating link src/dns"
ln -s src/dns dnspython/dns
fi
if [ ! -e "src/sleekxmpp" ]
then
echo "Creating link src/sleekxmpp"
ln -s src/sleekxmpp SleekXMPP/sleekxmpp
fi