> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/documentation/make-sh.md).

# Make Sh

A portable Bash script that creates a fully‑wired ACF block in seconds.

```bash
cd porter/blocks
sh make.sh <block‑slug> [category]
```

* **block‑slug** – Machine slug (`testimonial-grid`).
* **category** – Block category (`components`, `layout`, default `components`).

The script performs:

| Step               | Result                                          |
| ------------------ | ----------------------------------------------- |
| Copy `_block-base` | Provides block.json, PHP template & SCSS stub   |
| Replace tokens     | `dummy-name` → slug, `Dummy_Title` → Title case |
| Create icon.svg    | Unique block icon for the editor                |
| Print next steps   | Reminds you to edit the ACF fields              |

> **Tip:** Add custom placeholders by editing `_block-base` and the sed commands inside `make.sh`.
