Timo Tijhof | 51516cd | 2013-04-09 01:32:29 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | BASE_DIR=$(cd $(dirname $0); pwd) |
Timo Tijhof | 6beaff3 | 2015-04-02 01:04:18 +0100 | [diff] [blame] | 3 | DEST_DIR=$BASE_DIR/public_html/lib |
| 4 | mkdir -p $DEST_DIR |
Timo Tijhof | 95e9d23 | 2015-04-02 00:56:32 +0100 | [diff] [blame] | 5 | echo "Destination: $DEST_DIR" |
Joshua Hesketh | 4863b60 | 2014-03-21 14:19:06 +1100 | [diff] [blame] | 6 | |
Timo Tijhof | 51516cd | 2013-04-09 01:32:29 +0200 | [diff] [blame] | 7 | echo "Fetching jquery.min.js..." |
Timo Tijhof | 95e9d23 | 2015-04-02 00:56:32 +0100 | [diff] [blame] | 8 | curl -L --silent http://code.jquery.com/jquery.min.js > $DEST_DIR/jquery.min.js |
Joshua Hesketh | 4863b60 | 2014-03-21 14:19:06 +1100 | [diff] [blame] | 9 | |
Timo Tijhof | 51516cd | 2013-04-09 01:32:29 +0200 | [diff] [blame] | 10 | echo "Fetching jquery-visibility.min.js..." |
Timo Tijhof | 95e9d23 | 2015-04-02 00:56:32 +0100 | [diff] [blame] | 11 | curl -L --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $DEST_DIR/jquery-visibility.js |
Joshua Hesketh | 4863b60 | 2014-03-21 14:19:06 +1100 | [diff] [blame] | 12 | |
Joshua Hesketh | 9d01354 | 2014-04-03 13:08:04 +1100 | [diff] [blame] | 13 | echo "Fetching jquery.graphite.js..." |
| 14 | curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip |
Timo Tijhof | 95e9d23 | 2015-04-02 00:56:32 +0100 | [diff] [blame] | 15 | unzip -q -o jquery-graphite.zip -d $DEST_DIR/ |
| 16 | mv $DEST_DIR/graphitejs-master/jquery.graphite.js $DEST_DIR/ |
| 17 | rm -R jquery-graphite.zip $DEST_DIR/graphitejs-master |
Joshua Hesketh | 9d01354 | 2014-04-03 13:08:04 +1100 | [diff] [blame] | 18 | |
Timo Tijhof | 51516cd | 2013-04-09 01:32:29 +0200 | [diff] [blame] | 19 | echo "Fetching bootstrap..." |
Joshua Hesketh | 4863b60 | 2014-03-21 14:19:06 +1100 | [diff] [blame] | 20 | curl -L --silent https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip > bootstrap.zip |
Timo Tijhof | 95e9d23 | 2015-04-02 00:56:32 +0100 | [diff] [blame] | 21 | unzip -q -o bootstrap.zip -d $DEST_DIR/ |
| 22 | mv $DEST_DIR/bootstrap-3.1.1-dist $DEST_DIR/bootstrap |
Joshua Hesketh | 4863b60 | 2014-03-21 14:19:06 +1100 | [diff] [blame] | 23 | rm bootstrap.zip |