From 399a512f66e29a60b623bee31213439a88b6d4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Sun, 20 Oct 2024 11:47:05 +0200 Subject: [PATCH 1/5] Move examples to data-files section Otherwise, change to example would cause recompilation. --- swarm.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm.cabal b/swarm.cabal index 301fcb518..573093094 100644 --- a/swarm.cabal +++ b/swarm.cabal @@ -47,7 +47,6 @@ extra-source-files: editors/vim/*.lua editors/vim/*.vim editors/vscode/syntaxes/*.yaml - example/*.sw extra-doc-files: docs/image/sublibrary-graph.svg data-dir: data/ @@ -61,6 +60,7 @@ data-files: test/standalone-topography/*.png test/standalone-topography/*.yaml worlds/*.world + example/*.sw source-repository head type: git From ccdcb1388b134670f21050ae8577b986be34392f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Sun, 20 Oct 2024 11:57:49 +0200 Subject: [PATCH 2/5] cabal gild --- swarm.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm.cabal b/swarm.cabal index 573093094..2994a7c50 100644 --- a/swarm.cabal +++ b/swarm.cabal @@ -53,6 +53,7 @@ data-dir: data/ data-files: *.txt *.yaml + example/*.sw scenarios/**/*.sw scenarios/**/*.txt scenarios/**/*.yaml @@ -60,7 +61,6 @@ data-files: test/standalone-topography/*.png test/standalone-topography/*.yaml worlds/*.world - example/*.sw source-repository head type: git From 3a4ff557c7b08d125237703ad86e0026f387518d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Sun, 20 Oct 2024 11:59:32 +0200 Subject: [PATCH 3/5] change datadir to fix error --- swarm.cabal | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/swarm.cabal b/swarm.cabal index 2994a7c50..045a067e7 100644 --- a/swarm.cabal +++ b/swarm.cabal @@ -49,18 +49,17 @@ extra-source-files: editors/vscode/syntaxes/*.yaml extra-doc-files: docs/image/sublibrary-graph.svg -data-dir: data/ data-files: - *.txt - *.yaml + data/*.txt + data/*.yaml + data/scenarios/**/*.sw + data/scenarios/**/*.txt + data/scenarios/**/*.yaml + data/test/language-snippets/**/*.sw + data/test/standalone-topography/*.png + data/test/standalone-topography/*.yaml + data/worlds/*.world example/*.sw - scenarios/**/*.sw - scenarios/**/*.txt - scenarios/**/*.yaml - test/language-snippets/**/*.sw - test/standalone-topography/*.png - test/standalone-topography/*.yaml - worlds/*.world source-repository head type: git From 0da1d5852b126794c0d28be5ab1baa69ea788b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Sun, 20 Oct 2024 16:42:32 +0200 Subject: [PATCH 4/5] Revert "change datadir to fix error" This reverts commit 3a4ff557c7b08d125237703ad86e0026f387518d. --- swarm.cabal | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/swarm.cabal b/swarm.cabal index 045a067e7..2994a7c50 100644 --- a/swarm.cabal +++ b/swarm.cabal @@ -49,17 +49,18 @@ extra-source-files: editors/vscode/syntaxes/*.yaml extra-doc-files: docs/image/sublibrary-graph.svg +data-dir: data/ data-files: - data/*.txt - data/*.yaml - data/scenarios/**/*.sw - data/scenarios/**/*.txt - data/scenarios/**/*.yaml - data/test/language-snippets/**/*.sw - data/test/standalone-topography/*.png - data/test/standalone-topography/*.yaml - data/worlds/*.world + *.txt + *.yaml example/*.sw + scenarios/**/*.sw + scenarios/**/*.txt + scenarios/**/*.yaml + test/language-snippets/**/*.sw + test/standalone-topography/*.png + test/standalone-topography/*.yaml + worlds/*.world source-repository head type: git From ab506b9f971a7ae48643bce5c1eafda14f105b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20S=CC=8Cebek?= Date: Sun, 20 Oct 2024 16:46:35 +0200 Subject: [PATCH 5/5] try symlink --- data/example | 1 + 1 file changed, 1 insertion(+) create mode 120000 data/example diff --git a/data/example b/data/example new file mode 120000 index 000000000..3cfc163ba --- /dev/null +++ b/data/example @@ -0,0 +1 @@ +../example \ No newline at end of file