From f96e2420ef5fbb5e4dc1793bd693f231dc0078e0 Mon Sep 17 00:00:00 2001 From: Robin Chappatte Date: Sat, 25 Apr 2026 05:36:20 +0200 Subject: [PATCH] add way to reduce build output's size (cherry picked from commit 5231f54c2765fd3f3039917496d28b2b9cdf0688) --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index a68efc9..72c7589 100755 --- a/readme.md +++ b/readme.md @@ -20,6 +20,9 @@ It also convert the PPM assets (map and sprites) into ASM raw values representat Usage example: ```sh ./build.ts > /path/to/the/game/schematics/architecture/Symfony/sandbox/main.asm + +# script output can easily be piped to strip it off all comments, leading whitespace and empty lines: +./build.ts | sed 's/\s*;.*//' | sed 's/^\s*//' | sed '/^\d*$/d' > result.asm ``` The script is build over Deno's API, so you'll need to have a `deno` binary in your PATH to use it that way.