Changeset d0fc76b in OpenWorkouts-current for bin/js_deps
- Timestamp:
- Jan 25, 2019, 1:49:34 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 1fe89ea
- Parents:
- 4dcf28d (diff), 26220ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/js_deps
r4dcf28d rd0fc76b 227 227 } 228 228 229 d3() { 230 NAME="d3" 231 VERSION=5.7.0 232 URL=https://github.com/${NAME}/${NAME}/releases/download/v${VERSION}/${NAME}.zip 233 check_cache ${NAME} ${VERSION} 234 in_cache=$? 235 if [ ${in_cache} -eq 0 -a ${REINSTALL} -eq 1 ]; then 236 echo "${NAME}-${VERSION} $ALREADY_INSTALLED" 237 else 238 echo "> Installing ${NAME} ${VERSION}" 239 if [ -d ${COMPONENTS}/${NAME} ]; then 240 # Clean up, delete previous install before installing 241 rm -r ${COMPONENTS}/${NAME} 242 fi 243 cd ${TMP} 244 ${GET} ${URL} 245 ${UNZIP} ${NAME}.zip -d ${NAME} 246 cd ${CURRENT} 247 mv ${TMP}/${NAME} ${COMPONENTS}/ 248 echo "${NAME}-${VERSION}" >> ${CACHE} 249 echo "< Installed ${NAME} ${VERSION}" 250 fi 251 } 252 253 229 254 echo "Installing JS dependencies in ${COMPONENTS}" 230 255 … … 235 260 leaflet_elevation 236 261 pickadate 262 d3 263 237 264 238 265 # Clean up, remove the tmp directory
Note: See TracChangeset
for help on using the changeset viewer.