- Timestamp:
- Mar 5, 2019, 11:45:32 PM (5 years ago)
- Branches:
- current
- Children:
- aa6dcaf
- Parents:
- 35953eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/js_deps
r35953eb r778d53d 251 251 } 252 252 253 jquery_dropdown() { 254 # We need version "master", as the latest release does not work properly 255 NAME="jquery-dropdown" 256 VERSION=master 257 URL=https://github.com/soundasleep/${NAME}/archive/${VERSION}.tar.gz 258 check_cache ${NAME} ${VERSION} 259 in_cache=$? 260 if [ ${in_cache} -eq 0 -a ${REINSTALL} -eq 1 ]; then 261 echo "${NAME}-${VERSION} $ALREADY_INSTALLED" 262 else 263 echo "> Installing ${NAME} ${VERSION}" 264 if [ -d ${COMPONENTS}/${NAME} ]; then 265 # Clean up, delete previous install before installing 266 rm -r ${COMPONENTS}/${NAME} 267 fi 268 mkdir ${COMPONENTS}/${NAME} 269 cd ${TMP} 270 ${GET} ${URL} 271 ${TAR} ${VERSION}.tar.gz 272 cd ${CURRENT} 273 mv ${TMP}/${NAME}-${VERSION}/jquery.dropdown.{css,js} ${COMPONENTS}/${NAME} 274 echo "${NAME}-${VERSION}" >> ${CACHE} 275 echo "< Installed ${NAME} ${VERSION}" 276 fi 277 } 278 253 279 254 280 echo "Installing JS dependencies in ${COMPONENTS}" … … 261 287 pickadate 262 288 d3 289 jquery_dropdown 263 290 264 291
Note: See TracChangeset
for help on using the changeset viewer.