blob: ccaf74ca8c0d9be59f412a9e3507012ae5789f2c [file] [log] [blame]
Timo Tijhof51516cd2013-04-09 01:32:29 +02001#!/bin/bash
2BASE_DIR=$(cd $(dirname $0); pwd)
Timo Tijhof6beaff32015-04-02 01:04:18 +01003DEST_DIR=$BASE_DIR/public_html/lib
4mkdir -p $DEST_DIR
Timo Tijhof95e9d232015-04-02 00:56:32 +01005echo "Destination: $DEST_DIR"
Joshua Hesketh4863b602014-03-21 14:19:06 +11006
Timo Tijhof51516cd2013-04-09 01:32:29 +02007echo "Fetching jquery.min.js..."
Timo Tijhof95e9d232015-04-02 00:56:32 +01008curl -L --silent http://code.jquery.com/jquery.min.js > $DEST_DIR/jquery.min.js
Joshua Hesketh4863b602014-03-21 14:19:06 +11009
Timo Tijhof51516cd2013-04-09 01:32:29 +020010echo "Fetching jquery-visibility.min.js..."
Timo Tijhof95e9d232015-04-02 00:56:32 +010011curl -L --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $DEST_DIR/jquery-visibility.js
Joshua Hesketh4863b602014-03-21 14:19:06 +110012
Joshua Hesketh9d013542014-04-03 13:08:04 +110013echo "Fetching jquery.graphite.js..."
14curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip
Timo Tijhof95e9d232015-04-02 00:56:32 +010015unzip -q -o jquery-graphite.zip -d $DEST_DIR/
16mv $DEST_DIR/graphitejs-master/jquery.graphite.js $DEST_DIR/
17rm -R jquery-graphite.zip $DEST_DIR/graphitejs-master
Joshua Hesketh9d013542014-04-03 13:08:04 +110018
Timo Tijhof51516cd2013-04-09 01:32:29 +020019echo "Fetching bootstrap..."
Joshua Hesketh4863b602014-03-21 14:19:06 +110020curl -L --silent https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip > bootstrap.zip
Timo Tijhof95e9d232015-04-02 00:56:32 +010021unzip -q -o bootstrap.zip -d $DEST_DIR/
22mv $DEST_DIR/bootstrap-3.1.1-dist $DEST_DIR/bootstrap
Joshua Hesketh4863b602014-03-21 14:19:06 +110023rm bootstrap.zip