summaryrefslogtreecommitdiffstats
path: root/vtysh/daemons.pl
blob: c75bae0c1f0b8faf3173e3bcf717a0482d3a6ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
##
## generate daemons list and help strings
##
## Copyright (C) 2020 NFWare Inc.

use strict;

my @daemons_list = ();
my @daemons_str = ();

foreach (@ARGV) {
	push (@daemons_list, $_);
	push (@daemons_str, "For the $_ daemon\\n");
}

print "#define DAEMONS_LIST \"<" . join('|', @daemons_list) . ">\"\n";
print "#define DAEMONS_STR \"" . join('', @daemons_str) . "\"\n";