Another approach would be to generate the splitted commands in the
Makefile on-demand, which is probably not desired.
Signed-off-by: Axel Burri <axel@xxxxxxx>
---
btrfs-filesystem-usage.c | 23 +++++++++++++++++++++++
btrfs-qgroup-destroy.c | 23 +++++++++++++++++++++++
btrfs-receive.c | 23 +++++++++++++++++++++++
btrfs-send.c | 23 +++++++++++++++++++++++
btrfs-subvolume-delete.c | 23 +++++++++++++++++++++++
btrfs-subvolume-list.c | 23 +++++++++++++++++++++++
btrfs-subvolume-show.c | 23 +++++++++++++++++++++++
btrfs-subvolume-snapshot.c | 23 +++++++++++++++++++++++
8 files changed, 184 insertions(+)
create mode 100644 btrfs-filesystem-usage.c
create mode 100644 btrfs-qgroup-destroy.c
create mode 100644 btrfs-receive.c
create mode 100644 btrfs-send.c
create mode 100644 btrfs-subvolume-delete.c
create mode 100644 btrfs-subvolume-list.c
create mode 100644 btrfs-subvolume-show.c
create mode 100644 btrfs-subvolume-snapshot.c
diff --git a/btrfs-filesystem-usage.c b/btrfs-filesystem-usage.c
new file mode 100644
index 00000000..e102ebc8
--- /dev/null
+++ b/btrfs-filesystem-usage.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-filesystem-usage
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-fi-usage.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_filesystem_usage(argc, argv);
+}
diff --git a/btrfs-qgroup-destroy.c b/btrfs-qgroup-destroy.c
new file mode 100644
index 00000000..4fb32210
--- /dev/null
+++ b/btrfs-qgroup-destroy.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-qgroup-destroy
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-qgroup.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_qgroup_destroy(argc, argv);
+}
diff --git a/btrfs-receive.c b/btrfs-receive.c
new file mode 100644
index 00000000..9fe94080
--- /dev/null
+++ b/btrfs-receive.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-receive
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-receive.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_receive(argc, argv);
+}
diff --git a/btrfs-send.c b/btrfs-send.c
new file mode 100644
index 00000000..0eff2931
--- /dev/null
+++ b/btrfs-send.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-send
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-send.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_send(argc, argv);
+}
diff --git a/btrfs-subvolume-delete.c b/btrfs-subvolume-delete.c
new file mode 100644
index 00000000..d6018d8b
--- /dev/null
+++ b/btrfs-subvolume-delete.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-subvolume-delete
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-subvolume.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_subvol_delete(argc, argv);
+}
diff --git a/btrfs-subvolume-list.c b/btrfs-subvolume-list.c
new file mode 100644
index 00000000..8529aef5
--- /dev/null
+++ b/btrfs-subvolume-list.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-subvolume-list
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-subvolume.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_subvol_list(argc, argv);
+}
diff --git a/btrfs-subvolume-show.c b/btrfs-subvolume-show.c
new file mode 100644
index 00000000..856f97cf
--- /dev/null
+++ b/btrfs-subvolume-show.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-subvolume-show
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-subvolume.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_subvol_show(argc, argv);
+}
diff --git a/btrfs-subvolume-snapshot.c b/btrfs-subvolume-snapshot.c
new file mode 100644
index 00000000..efdc0142
--- /dev/null
+++ b/btrfs-subvolume-snapshot.c
@@ -0,0 +1,23 @@
+/*
+ * btrfs-subvolume-snapshot
+ *
+ * GENERATED BY splitcmd-gen.sh
+ */
+
+#include "cmds-subvolume.c"
+
+/*
+ * Dummy object: used from second-level command groups (e.g. in
+ * "cmds-subvolume.c"), is never called in splitcmd executables.
+ */
+int handle_command_group(const struct cmd_group *grp, int argc,
+ char **argv)
+{
+ exit(1);
+}
+
+
+int main(int argc, char **argv)
+{
+ return cmd_subvol_snapshot(argc, argv);
+}
--
2.16.4