summaryrefslogtreecommitdiff
path: root/update.sh
blob: e353194ecf0f98c1601291e13008ebedaa907dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

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