Forked from trevorparscal/update-class-names-mmv.sh
Last active
August 29, 2015 14:09
-
-
Save tgr/ee234c79e95f28d69e97 to your computer and use it in GitHub Desktop.
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
# Execute this in the root of the mmv repo | |
# Find and replace script symbols | |
find {resources,tests/qunit}/mmv -name \*.js -exec sed -i '' \ | |
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \ | |
-e 's/MenuWidget/MenuSelectWidget/g' \ | |
-e 's/MenuItemWidget/MenuOptionWidget/g' \ | |
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \ | |
-e 's/OutlineWidget/OutlineSelectWidget/g' \ | |
-e 's/OutlineItemWidget/OutlineOptionWidget/g' \ | |
-e 's/contextMenuWidget/contextSelectWidget/g' \ | |
-e 's/contextItemWidget/contextOptionWidget/g' \ | |
-e 's/textInputMenuWidget/textInputMenuSelectWidget/g' \ | |
-e 's/menuWidget/menuSelectWidget/g' \ | |
-e 's/menuItemWidget/menuOptionWidget/g' \ | |
-e 's/menuSectionItemWidget/menuSectionOptionWidget/g' \ | |
-e 's/outlineWidget/outlineSelectWidget/g' \ | |
-e 's/outlineItemWidget/outlineOptionWidget/g' {} + | |
# Find and replace style symbols | |
find resources/mmv -name \*.less -exec sed -i '' \ | |
-e 's/textInputMenuWidget/textInputMenuSelectWidget/g' \ | |
-e 's/menuWidget/menuSelectWidget/g' \ | |
-e 's/menuItemWidget/menuOptionWidget/g' \ | |
-e 's/menuSectionItemWidget/menuSectionOptionWidget/g' \ | |
-e 's/outlineWidget/outlineSelectWidget/g' \ | |
-e 's/outlineItemWidget/outlineOptionWidget/g' {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment