Add a update.sh to download, update and install dependencies in the src dir
This commit is contained in:
parent
5c0cf9a98d
commit
60e0b2caab
1 changed files with 33 additions and 0 deletions
33
update.sh
Executable file
33
update.sh
Executable file
|
@ -0,0 +1,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
|
Loading…
Reference in a new issue