Mercurial > prosody-modules
diff mod_admin_web/admin_web/get_deps.sh @ 297:a70284e01453
mod_admin_web: Add support for calling adhoc commands
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sun, 26 Dec 2010 02:20:25 +0100 |
parents | 94fab3c0a7aa |
children | b8ea61f3b442 |
line wrap: on
line diff
--- a/mod_admin_web/admin_web/get_deps.sh Fri Dec 24 02:00:50 2010 +0100 +++ b/mod_admin_web/admin_web/get_deps.sh Sun Dec 26 02:20:25 2010 +0100 @@ -1,8 +1,7 @@ #!/bin/sh cd www_files/js -wget http://code.jquery.com/jquery-1.4.4.min.js -git clone git://github.com/metajack/strophejs.git strophejs -cd strophejs -make strophe.js && cp strophe.js ../strophe.js -cd .. -rm -rf strophejs +test -e jquery-1.4.4.min.js || wget http://code.jquery.com/jquery-1.4.4.min.js +test -e adhoc.js || wget http://cgit.babelmonkeys.de/cgit.cgi/adhocweb/plain/js/adhoc.js +test -e strophe.js || (git clone git://github.com/metajack/strophejs.git strophejs && \ + cd strophejs && make strophe.js && cp strophe.js ../strophe.js && \ + cd .. && rm -rf strophejs)