Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thijstriemstra
Last active December 9, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thijstriemstra/2c028a5dbf9913cd1185 to your computer and use it in GitHub Desktop.
Save thijstriemstra/2c028a5dbf9913cd1185 to your computer and use it in GitHub Desktop.
bump video.js version in examples and
#!/bin/bash
export OLD_VERSION=5.9.2
export NEW_VERSION=5.10.8
# check if language files exist
wget --delete-after https://vjs.zencdn.net/$NEW_VERSION/lang/nl.js
# update videojs in examples and documentation
find examples/ -type f -name '*.html' -exec sed -i '' -e "s/$OLD_VERSION/$NEW_VERSION/" {} \;
find . -type f -name '*.md' -exec sed -i '' -e "s/$OLD_VERSION/$NEW_VERSION/" {} \;
git commit -am "bump videojs to $NEW_VERSION in examples and documentation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment