goldilocks.js/update-packages.sh

32 lines
621 B
Bash
Raw Normal View History

#!/bin/bash
2017-06-12 18:45:55 +00:00
set -e
set -u
pushd $(dirname ${0})/packages/assets
2017-02-23 01:48:34 +00:00
2017-06-12 18:45:55 +00:00
OAUTH3_GIT_URL="https://git.daplie.com/Oauth3/oauth3.js.git"
git clone ${OAUTH3_GIT_URL} org.oauth3 || true
2017-02-23 01:48:34 +00:00
pushd org.oauth3
2017-06-12 18:45:55 +00:00
git remote set-url origin ${OAUTH3_GIT_URL}
2017-02-23 01:48:34 +00:00
git checkout master
git pull
popd
mkdir -p com.jquery
pushd com.jquery
curl -o jquery-3.1.1.js 'https://code.jquery.com/jquery-3.1.1.js'
2017-02-23 01:48:34 +00:00
popd
mkdir -p com.google
pushd com.google
curl -o angular.1.6.2.min.js 'https://ajax.googleapis.com/ajax/libs/angularjs/1.6.2/angular.min.js'
2017-02-23 01:48:34 +00:00
popd
mkdir -p well-known
pushd well-known
2017-05-01 23:52:22 +00:00
ln -snf ../org.oauth3/well-known/oauth3 ./oauth3
2017-02-23 01:48:34 +00:00
popd
popd