source: appstream-generator/contrib/setup/build_js.sh @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

  • Property svn:executable set to *
File size: 593 bytes
RevLine 
[4841]1#!/bin/sh
2set -e
3
4if [ -n "$MESON_SOURCE_ROOT" ]; then
5    cd "$MESON_SOURCE_ROOT/contrib/setup/"
6fi
7
8bower --allow-root install jquery jquery-flot highlightjs
9
10JS_TARGET=../../data/templates/default/static/js
11[ ! -d "$JS_TARGET" ] && mkdir $JS_TARGET
12
13[ ! -d "$JS_TARGET/jquery" ] && mkdir $JS_TARGET/jquery
14install js_tmp/jquery/dist/*.min.js -t $JS_TARGET/jquery
15
16[ ! -d "$JS_TARGET/flot" ] && mkdir $JS_TARGET/flot
17install js_tmp/Flot/jquery.flot*.js -t $JS_TARGET/flot
18
19[ ! -d "$JS_TARGET/highlight" ] && mkdir $JS_TARGET/highlight
20install js_tmp/highlightjs/*.js -t $JS_TARGET/highlight
Note: See TracBrowser for help on using the repository browser.