Commit 079861c0 authored by Leo Iannacone's avatar Leo Iannacone

install chartist

parent 12837a50
......@@ -37,6 +37,18 @@ get_tablesorter() {
cd ..
}
get_chartist() {
VERSION="0.1.11"
NAME="chartist-js-${VERSION}"
if [ -d ${EXT_LIBS_DIR}/${NAME} ] ; then return ; fi
ARCHIVE=v${VERSION}.zip
URL="https://github.com/gionkunz/chartist-js/archive/${ARCHIVE}"
echo "Downloading chartist-js ${VERSION} ..."
curl -s -O -L ${URL} && \
unzip -q ${ARCHIVE} && rm ${ARCHIVE}
}
if [ ! -d ${EXT_LIBS_DIR} ] ; then mkdir -p ${EXT_LIBS_DIR} ; fi
TMP_DIR="`mktemp -d`"
......@@ -45,6 +57,7 @@ cd ${TMP_DIR}
get_jquery
get_bootstrap
get_tablesorter
get_chartist
if [ "`ls -1`" != "" ] ; then mv * ${EXT_LIBS_DIR} ; fi
cd && rm -r ${TMP_DIR}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment