diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-09 21:22:16 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-09 21:22:16 +0200 |
commit | 984f586e3ef70b9db759ce48da4f06f0a6680c6f (patch) | |
tree | 3fe76aa0140255aab9bb08f21615ea7ada150796 /examples | |
parent | dd6321c0acf7b0570811200a205cc4104bee49c7 (diff) |
Move example config files to external files and generate at build time
Diffstat (limited to 'examples')
-rw-r--r-- | examples/README.TXT | 1 | ||||
-rw-r--r-- | examples/eula.txt | 1 | ||||
-rw-r--r-- | examples/example.mcserver | 1 | ||||
-rw-r--r-- | examples/meson.build | 29 | ||||
-rw-r--r-- | examples/minecproxy.conf | 1 | ||||
-rw-r--r-- | examples/minecproxy.service | 1 | ||||
-rw-r--r-- | examples/minecserver@.service | 1 | ||||
-rw-r--r-- | examples/server.properties | 1 |
8 files changed, 36 insertions, 0 deletions
diff --git a/examples/README.TXT b/examples/README.TXT new file mode 100644 index 0000000..4de7a1c --- /dev/null +++ b/examples/README.TXT @@ -0,0 +1 @@ +This is an example README.TXT diff --git a/examples/eula.txt b/examples/eula.txt new file mode 100644 index 0000000..aaf5a5a --- /dev/null +++ b/examples/eula.txt @@ -0,0 +1 @@ +This is an example eula diff --git a/examples/example.mcserver b/examples/example.mcserver new file mode 100644 index 0000000..ed919dc --- /dev/null +++ b/examples/example.mcserver @@ -0,0 +1 @@ +This is an example mcserver diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 0000000..e50f459 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2 + +example_files = [ + 'eula.txt', + 'example.mcserver', + 'minecproxy.conf', + 'minecproxy.service', + 'minecserver@.service', + 'README.TXT', + 'server.properties', +] + +xxd = find_program('xxd') + +xxd_cmd = [xxd, '-i', '@INPUT@', '@OUTPUT@'] + +foreach example_file: example_files + example_output = example_file + '.h' + + file = custom_target( + example_output, + input: example_file, + output: example_output, + command: xxd_cmd, + build_by_default: true, + ) +endforeach + + diff --git a/examples/minecproxy.conf b/examples/minecproxy.conf new file mode 100644 index 0000000..b17d8ef --- /dev/null +++ b/examples/minecproxy.conf @@ -0,0 +1 @@ +This is the minecproxy conf example diff --git a/examples/minecproxy.service b/examples/minecproxy.service new file mode 100644 index 0000000..e14ed81 --- /dev/null +++ b/examples/minecproxy.service @@ -0,0 +1 @@ +This is an example service diff --git a/examples/minecserver@.service b/examples/minecserver@.service new file mode 100644 index 0000000..e14ed81 --- /dev/null +++ b/examples/minecserver@.service @@ -0,0 +1 @@ +This is an example service diff --git a/examples/server.properties b/examples/server.properties new file mode 100644 index 0000000..f992c40 --- /dev/null +++ b/examples/server.properties @@ -0,0 +1 @@ +This is an example server.properties file |