summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-27 08:15:45 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-27 08:15:45 -0400
commit74818bb1cd05af3562af715ad2799e0ff1ef36c9 (patch)
tree20f1ed123765a384703d0a8028808f23b02e12c1 /vtysh
parentf30a73277c8ce6496f4d642de0ec6232874afd74 (diff)
vtysh: Sort ordering of vtysh_cmd.c
When we created the vtysh_cmd.c file the vtysh_cmd.c output is slightly different for every run, even when none of the inputs have changed. Add the ability to sort the output so that the output is the same for every build. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'vtysh')
-rwxr-xr-xvtysh/extract.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in
index 316ea598e8..ca280c5872 100755
--- a/vtysh/extract.pl.in
+++ b/vtysh/extract.pl.in
@@ -198,7 +198,7 @@ foreach (keys %odefun) {
}
# Output DEFSH
-foreach (keys %live) {
+foreach (sort keys %live) {
my ($proto);
my ($key);
$key = $live{$_};
@@ -213,7 +213,7 @@ vtysh_init_cmd ()
{
EOF
-foreach (keys %odefun) {
+foreach (sort keys %odefun) {
my ($node, $str) = (split (/,/));
$cmd = $ocmd{$_};
$cmd =~ s/_cmd/_cmd_vtysh/;