-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeps.sh
More file actions
executable file
·33 lines (27 loc) · 775 Bytes
/
deps.sh
File metadata and controls
executable file
·33 lines (27 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#
# Copyright 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found
# in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd
#
# Scripts to handle plugin dependencies. This can be done in a more principled
# way later.
#
# Usage:
# ./deps.sh <function name>
set -o nounset
get-json-tree() {
local out=_tmp/json-tree
wget --directory $out https://github.com/lmenezes/json-tree/archive/master.zip
cd $out
unzip master.zip
}
install-user() {
local plugin=plugins/json/
mkdir -p $plugin/static
local src=_tmp/json-tree/json-tree-master/
cp -v $src/jsontree.js $src/css/jsontree.css $plugin/static
cp -v $src/example.html $plugin
tree $plugin
}
"$@"