From d9f3ab163418de5d0a98acccd7d98461e40ecbee Mon Sep 17 00:00:00 2001 From: Karl Ostmo Date: Sun, 12 Jan 2025 16:10:02 -0800 Subject: [PATCH] gen subfolders --- scripts/gen/{ => doc}/commands-matrix-data.sh | 0 scripts/gen/{ => doc}/commands-wiki.sh | 0 scripts/gen/{ => doc}/haddocks.sh | 0 scripts/gen/{ => doc}/schema-docs.sh | 0 scripts/gen/{ => img}/preview-world-vscode.sh | 4 ++-- scripts/gen/{ => img}/render-sublibrary-dependencies.sh | 0 scripts/gen/live/README.md | 3 +++ scripts/gen/{ => live}/goals-graph.sh | 0 8 files changed, 5 insertions(+), 2 deletions(-) rename scripts/gen/{ => doc}/commands-matrix-data.sh (100%) rename scripts/gen/{ => doc}/commands-wiki.sh (100%) rename scripts/gen/{ => doc}/haddocks.sh (100%) rename scripts/gen/{ => doc}/schema-docs.sh (100%) rename scripts/gen/{ => img}/preview-world-vscode.sh (81%) rename scripts/gen/{ => img}/render-sublibrary-dependencies.sh (100%) create mode 100644 scripts/gen/live/README.md rename scripts/gen/{ => live}/goals-graph.sh (100%) diff --git a/scripts/gen/commands-matrix-data.sh b/scripts/gen/doc/commands-matrix-data.sh similarity index 100% rename from scripts/gen/commands-matrix-data.sh rename to scripts/gen/doc/commands-matrix-data.sh diff --git a/scripts/gen/commands-wiki.sh b/scripts/gen/doc/commands-wiki.sh similarity index 100% rename from scripts/gen/commands-wiki.sh rename to scripts/gen/doc/commands-wiki.sh diff --git a/scripts/gen/haddocks.sh b/scripts/gen/doc/haddocks.sh similarity index 100% rename from scripts/gen/haddocks.sh rename to scripts/gen/doc/haddocks.sh diff --git a/scripts/gen/schema-docs.sh b/scripts/gen/doc/schema-docs.sh similarity index 100% rename from scripts/gen/schema-docs.sh rename to scripts/gen/doc/schema-docs.sh diff --git a/scripts/gen/preview-world-vscode.sh b/scripts/gen/img/preview-world-vscode.sh similarity index 81% rename from scripts/gen/preview-world-vscode.sh rename to scripts/gen/img/preview-world-vscode.sh index bf91977ea..4f1ba3b87 100755 --- a/scripts/gen/preview-world-vscode.sh +++ b/scripts/gen/img/preview-world-vscode.sh @@ -25,9 +25,9 @@ IMG_WIDTH=200 IMG_HEIGHT=150 IMG_OUTPUT_PATH=output.png -RENDER_IMG_COMMAND="stack exec swarm-scene -- $SCENARIO_PATH --fail-blank --dest $IMG_OUTPUT_PATH --png --width $IMG_WIDTH --height $IMG_HEIGHT" +RENDER_IMG_COMMAND="cabal run swarm-scene -- $SCENARIO_PATH --fail-blank --dest $IMG_OUTPUT_PATH --png --width $IMG_WIDTH --height $IMG_HEIGHT" -stack build --fast swarm:swarm-scene +cabal build -j -O0 swarm:swarm-scene $RENDER_IMG_COMMAND code --reuse-window $SCENARIO_PATH && code --reuse-window $IMG_OUTPUT_PATH diff --git a/scripts/gen/render-sublibrary-dependencies.sh b/scripts/gen/img/render-sublibrary-dependencies.sh similarity index 100% rename from scripts/gen/render-sublibrary-dependencies.sh rename to scripts/gen/img/render-sublibrary-dependencies.sh diff --git a/scripts/gen/live/README.md b/scripts/gen/live/README.md new file mode 100644 index 000000000..9132e6a11 --- /dev/null +++ b/scripts/gen/live/README.md @@ -0,0 +1,3 @@ +These commands rely upon a running swarm game instance with a webserver +listening on port `5357`. + diff --git a/scripts/gen/goals-graph.sh b/scripts/gen/live/goals-graph.sh similarity index 100% rename from scripts/gen/goals-graph.sh rename to scripts/gen/live/goals-graph.sh