summaryrefslogtreecommitdiffstats
path: root/Synapse/install
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-05 20:45:56 +0200
committertv <tv@xso>2011-09-05 20:45:56 +0200
commit2f5655ced03243ef03eb3417c9f090117568a885 (patch)
tree968bb8da4ae7508bd30371c13a239edfc7728d9d /Synapse/install
parent34b55bc3cf29cdfbaa40c494e3d2011855f15cc8 (diff)
//Synapse: emergency commit^_^
Diffstat (limited to 'Synapse/install')
-rwxr-xr-xSynapse/install27
1 files changed, 27 insertions, 0 deletions
diff --git a/Synapse/install b/Synapse/install
new file mode 100755
index 00000000..95e05199
--- /dev/null
+++ b/Synapse/install
@@ -0,0 +1,27 @@
+#! /bin/sh
+set -xeuf
+
+cd $(dirname $(readlink -f $0))
+
+# install irclib.py
+{
+ PV=0.4.6
+ PN=python-irclib
+ P=$PN-$PV
+ tarball=$P.tar.gz
+ URL=http://downloads.sourceforge.net/$PN/$tarball
+ SHA1SUM=c6271e44293ed51c21af0f44ce106667d3006e6f
+
+ file=irclib.py
+
+ if ! echo "$SHA1SUM $file" | sha1sum -c; then
+ temp=`mktemp`
+ trap "rm -f $temp" EXIT INT
+
+ echo $P/$file > $temp
+ curl -LfsS $URL | tar --strip-components=1 -zxT $temp
+ fi
+ echo "$SHA1SUM $file" | sha1sum -c
+}
+
+