Last active
December 9, 2016 16:29
-
-
Save thijstriemstra/2c028a5dbf9913cd1185 to your computer and use it in GitHub Desktop.
bump video.js version in examples and
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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