From 984f586e3ef70b9db759ce48da4f06f0a6680c6f Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Thu, 9 Jul 2020 21:22:16 +0200 Subject: Move example config files to external files and generate at build time --- examples/README.TXT | 1 + examples/eula.txt | 1 + examples/example.mcserver | 1 + examples/meson.build | 29 +++++++++++++++++++++++++++++ examples/minecproxy.conf | 1 + examples/minecproxy.service | 1 + examples/minecserver@.service | 1 + examples/server.properties | 1 + 8 files changed, 36 insertions(+) create mode 100644 examples/README.TXT create mode 100644 examples/eula.txt create mode 100644 examples/example.mcserver create mode 100644 examples/meson.build create mode 100644 examples/minecproxy.conf create mode 100644 examples/minecproxy.service create mode 100644 examples/minecserver@.service create mode 100644 examples/server.properties (limited to 'examples') 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 -- cgit v1.2.3