summaryrefslogtreecommitdiffstats
path: root/conf/gen_commands.m4
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-19 15:37:56 +0100
committerMartin Mares <mj@ucw.cz>2000-01-19 15:37:56 +0100
commitf50b9e48b93e3f69423a0e6e5fef273ba2022958 (patch)
tree8266a456f5cb079aa13be83c3279638c34d435f8 /conf/gen_commands.m4
parent4b87e256eba51a8711c24fbae501ac7975b4ecd3 (diff)
downloadbird-f50b9e48b93e3f69423a0e6e5fef273ba2022958.tar
bird-f50b9e48b93e3f69423a0e6e5fef273ba2022958.zip
Generate a list of all commands and their help texts for the client to use.
Diffstat (limited to 'conf/gen_commands.m4')
-rw-r--r--conf/gen_commands.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/conf/gen_commands.m4 b/conf/gen_commands.m4
new file mode 100644
index 0000000..cba10b4
--- /dev/null
+++ b/conf/gen_commands.m4
@@ -0,0 +1,17 @@
+m4_divert(-1)m4_dnl
+#
+# BIRD -- Generator of CLI Command List
+#
+# (c) 2000 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+#
+# Can be freely distributed and used under the terms of the GNU GPL.
+#
+
+m4_define(CF_CLI, `CF_CLI_HELP($1, $3, $4)')
+
+m4_define(CF_CLI_HELP, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$2", "$3" },
+m4_divert(-1)')
+
+# As we are processing C source, we must access all M4 primitives via
+# m4_* and also set different quoting convention: `[[' and ']]'
+m4_changequote([[,]])