summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-10-08 16:22:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-04 12:36:19 +0100
commit6aaba64b0c7044c242329499d5d4c53c3d0cde3a (patch)
tree958a1d47f0252440ced0eb7974d2900a27c21646 /commands/Kconfig
parent6cf5b986d98a19a8c05f6813b8944a4f5f784dd0 (diff)
downloadbarebox-6aaba64b0c7044c242329499d5d4c53c3d0cde3a.tar.gz
barebox-6aaba64b0c7044c242329499d5d4c53c3d0cde3a.tar.xz
commands: implement 'cmp' command
This command compares two files. It does not show the differences, it only returns successfully if both files are identical and with an error if they differ. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index d73a393885..bef58473a5 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -811,6 +811,16 @@ config CMD_CP
Options:
-v verbose
+config CMD_CMP
+ tristate
+ prompt "cmp"
+ help
+ compare two files
+
+ Usage: cmp FILE1 FILE2
+
+ Returns successfully if the two files are the same, return with an error if not
+
config CMD_DIRNAME
tristate
prompt "dirname"