Changeset

397:7331e2669f24

mod_admin_web: Update dependencies / remove need to build strophe.js (Thanks Zash)
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 29 Jul 2011 22:39:58 +0200
parents 396:8cb21ef24e5d
children 398:fdd4f5ab029a
files mod_admin_web/admin_web/get_deps.sh mod_admin_web/admin_web/www_files/index.html
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_web/admin_web/get_deps.sh	Fri Jul 29 22:26:02 2011 +0200
+++ b/mod_admin_web/admin_web/get_deps.sh	Fri Jul 29 22:39:58 2011 +0200
@@ -1,8 +1,7 @@
 #!/bin/sh
+JQUERY_VERSION="1.6.2"
+STROPHE_VERSION="1.0.2"
 cd www_files/js
-test -e jquery-1.4.4.min.js || wget http://code.jquery.com/jquery-1.4.4.min.js
+test -e jquery-$JQUERY_VERSION.min.js || wget http://code.jquery.com/jquery-$JQUERY_VERSION.min.js
 test -e adhoc.js || wget http://cgit.babelmonkeys.de/cgit.cgi/adhocweb/plain/js/adhoc.js
-test -e strophe.js || (wget --no-check-certificate -O strophe.tar.gz https://github.com/metajack/strophejs/tarball/release-1.0.1 && \
-	tar xzf strophe.tar.gz && rm strophe.tar.gz && cd metajack-strophejs-*/ && make strophe.js && cp strophe.js ../strophe.js && \
-	cd .. && rm -rf metajack-strophejs*)
-
+test -e strophe.min.js || (wget https://github.com/downloads/metajack/strophejs/strophejs-$STROPHE_VERSION.tar.gz && tar xzf strophejs-$STROPHE_VERSION.tar.gz strophejs-$STROPHE_VERSION/strophe.min.js --strip-components=1 && rm strophejs-$STROPHE_VERSION.tar.gz)
--- a/mod_admin_web/admin_web/www_files/index.html	Fri Jul 29 22:26:02 2011 +0200
+++ b/mod_admin_web/admin_web/www_files/index.html	Fri Jul 29 22:39:58 2011 +0200
@@ -6,8 +6,8 @@
 <title>Prosody Webadmin</title>
 <link rel="stylesheet" type="text/css" href="style.css" />
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
-<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
-<script type="text/javascript" src="js/strophe.js"></script>
+<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
+<script type="text/javascript" src="js/strophe.min.js"></script>
 <script type="text/javascript" src="js/adhoc.js"></script>
 <script type="text/javascript" src="js/main.js"></script>
 </head>