Changeset 8e5f92c in OpenWorkouts-current for bin


Ignore:
Timestamp:
Dec 17, 2018, 1:01:26 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
affc3f7
Parents:
a0085a2
Message:

Added pickadate as an external js component.

IMPORTANT: remember to run ./bin/js_deps after pulling/applying this patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/js_deps

    ra0085a2 r8e5f92c  
    202202}
    203203
     204pickadate() {
     205    NAME="pickadate"
     206    VERSION=3.5.6
     207    URL=https://github.com/amsul/${NAME}.js/archive/${VERSION}.tar.gz
     208    check_cache ${NAME} ${VERSION}
     209    in_cache=$?
     210    if [ ${in_cache} -eq 0 -a ${REINSTALL} -eq 1 ]; then
     211        echo "${NAME}-${VERSION} $ALREADY_INSTALLED"
     212    else
     213        echo "> Installing ${NAME} ${VERSION}"
     214        if [ -d ${COMPONENTS}/${NAME} ]; then
     215            # Clean up, delete previous install before installing
     216            rm -r ${COMPONENTS}/${NAME}
     217        fi
     218        mkdir ${COMPONENTS}/${NAME}
     219        cd ${TMP}
     220        ${GET} ${URL}
     221        ${TAR} ${VERSION}.tar.gz
     222        cd ${CURRENT}
     223        mv ${TMP}/${NAME}.js-${VERSION}/lib/* ${COMPONENTS}/${NAME}
     224        echo "${NAME}-${VERSION}" >> ${CACHE}
     225        echo "< Installed ${NAME} ${VERSION}"
     226    fi
     227}
     228
    204229echo "Installing JS dependencies in ${COMPONENTS}"
    205230
     
    209234leaflet_gpx
    210235leaflet_elevation
     236pickadate
    211237
    212238# Clean up, remove the tmp directory
Note: See TracChangeset for help on using the changeset viewer.