summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-04-13 02:14:35 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-04-13 02:14:35 +0200
commit60e0b2caab47a13395d79d86f268713b0b252b5e (patch)
tree27faf9e6fbecfe2448afc3d44421f8f9c7b61bf2
parent5c0cf9a98d32a808d966fddc7ad3578bb3ad4b2a (diff)
downloadpoezio-60e0b2caab47a13395d79d86f268713b0b252b5e.tar.gz
poezio-60e0b2caab47a13395d79d86f268713b0b252b5e.tar.bz2
poezio-60e0b2caab47a13395d79d86f268713b0b252b5e.tar.xz
poezio-60e0b2caab47a13395d79d86f268713b0b252b5e.zip
Add a update.sh to download, update and install dependencies in the src dir
-rwxr-xr-xupdate.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 00000000..e353194e
--- /dev/null
+++ b/update.sh
@@ -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