Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation how to : update #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Then this block of commands will take care of most of the downloading and renami
git clone https://github.com/BrianHenryIE/WordPress-Plugin-Boilerplate.git
mv WordPress-Plugin-Boilerplate $plugin_slug
cd $plugin_slug
find . -depth -name '*.txt' -exec sed -i '' 's/Plugin Name/'$plugin_name'/' {} +
find . -depth -name '*.txt' -exec sed -i "s/Plugin Name/$plugin_name/" {} +
find . -depth -name '*plugin-name*' -execdir bash -c 'git mv "$1" "${1//plugin-name/'$plugin_slug'}"' bash {} \;
find . -type f \( -name '*.php' -o -name '*.txt' -o -name '*.json' -o -name '*.xml' -o -name ".gitignore" \) -exec sed -i '' 's/plugin-name/'$plugin_slug'/' {} +
find . -depth -name $plugin_slug'.php' -exec sed -i '' 's/plugin_snake/'$plugin_snake'/' {} +
find . -depth -name $plugin_slug'.php' -exec sed -i '' 's/plugin_snake/'$plugin_snake'/' {} +
find . -type f \( -name '*.php' -o -name '*.txt' -o -name '*.json' -o -name '*.xml' \) -exec sed -i '' 's/Plugin_Name/'$plugin_package_name'/g' {} \;
find . -depth -name '*.php' -exec sed -i '' 's/PLUGIN_NAME/'$plugin_package_capitalized'/' {} +
find . -type f \( -name '*.php' -o -name '*.txt' -o -name '*.json' -o -name '*.xml' -o -name ".gitignore" \) -exec sed -i "s/plugin-name/$plugin_slug/" {} +
find . -depth -name $plugin_slug'.php' -exec sed -i "s/plugin_snake/$plugin_snake/g" {} +
find . -depth -name $plugin_slug'.php' -exec sed -i "s/WordPress Plugin Boilerplate/$plugin_name/" {} +
find . -type f \( -name '*.php' -o -name '*.txt' -o -name '*.json' -o -name '*.xml' \) -exec sed -i "s/Plugin_Name/$plugin_package_name/g" {} \;
find . -depth -name '*.php' -exec sed -i "s/PLUGIN_NAME/$plugin_package_capitalized/" {} +
composer install
```

Expand Down Expand Up @@ -300,4 +300,4 @@ The minimum WordPress version can be determined using [wpseek.com's Plugin Docto

## Acknowledgements

The contributors to [WordPress Plugin Boilerplate](https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/) and more.
The contributors to [WordPress Plugin Boilerplate](https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/) and more.