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

Replace BLACKLIST with OMIT_LIST #237

Open
wants to merge 2 commits 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
5 changes: 3 additions & 2 deletions projects/wordpress-plugins/release.sh
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
RELEASE_DIR=release;
SVN_PATH=$RELEASE_DIR/svn;
SVN_REPO="https://plugins.svn.wordpress.org/plugin-slug-goes-here/";
BLACKLIST=(
OMIT_LIST=(
.\*
release.sh
mkdocs.yml
@@ -129,7 +129,8 @@ function create_release_zip() {
echo "Creating release/wp-release.zip";

OUT=`rm -f release/wp-release.zip`;
OUT=`zip -x "${BLACKLIST[@]}" -q -r release/wp-release.zip .`;
OUT=`zip -x "${OMIT_LIST
[@]}" -q -r release/wp-release.zip .`;

if [[ $? -ne 0 ]]
then
6 changes: 3 additions & 3 deletions projects/wordpress-plugins/release.sh.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ This file provides setup, usage, and configuration instructions for `release.sh`

### The first release

1. Review the files in the `BLACKLIST` variable in `release.sh`. Make changes as necessary.
1. Review the files in the `OMIT_LIST` variable in `release.sh`. Make changes as necessary.
2. Update the `SVN_REPO` variable with your plugin's `plugins.svn.wordpress.org` SVN repository.
3. `chmod +x release.sh`.
4. Add `release/` to the project's `.gitignore`.
@@ -18,7 +18,7 @@ This file provides setup, usage, and configuration instructions for `release.sh`
- If it asks you to enter the password for your computer's username, press the `[enter]` key to get the username prompt, then enter your `wordpress.org` username and password.

### Using a new device with an existing plugin repository
1. Review the files in the `BLACKLIST` variable in `release.sh`. Make changes as necessary.
1. Review the files in the `OMIT_LIST` variable in `release.sh`. Make changes as necessary.
2. Update the `SVN_REPO` variable with your plugin's `plugins.svn.wordpress.org` SVN repository.
3. `chmod +x release.sh`.
4. `mkdir release`.
@@ -87,7 +87,7 @@ According to https://make.wordpress.org/core/handbook/tutorials/installing-wordp

#### `.git/` directories contained within the plugin's release .zip file

Check your plugin's `release.sh` to make sure that `./\*\*/.\*` is contained within the `BLACKLIST` variable.
Check your plugin's `release.sh` to make sure that `./\*\*/.\*` is contained within the `OMIT_LIST` variable.

https://github.com/INN/docs/blob/1e53bd3a6793ea8c7197670316e49c9ff6da8661/projects/wordpress-plugins/release.sh#L19