Skip to content

Instantly share code, notes, and snippets.

@tgr
Forked from trevorparscal/update-class-names-mmv.sh
Last active August 29, 2015 14:09
Show Gist options
  • Save tgr/ee234c79e95f28d69e97 to your computer and use it in GitHub Desktop.
Save tgr/ee234c79e95f28d69e97 to your computer and use it in GitHub Desktop.
# 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