Rename ndn-dissect to ndndissect
Change-Id: I99b4a0bc647086e492c0bf0b80eda183b9185e79
diff --git a/tools/dissect/README.md b/tools/dissect/README.md
index 70d2458..10ef7fe 100644
--- a/tools/dissect/README.md
+++ b/tools/dissect/README.md
@@ -1,6 +1,6 @@
-# ndn-dissect
+# ndndissect
-**ndn-dissect** is an NDN packet format inspector.
+**ndndissect** is an NDN packet format inspector.
It reads zero or more NDN packets from either an input file or the standard
input, and displays the Type-Length-Value (TLV) structure of those packets
on the standard output.
@@ -9,6 +9,6 @@
1. start NFD on the local machine
2. run `echo 'HELLO WORLD' | ndnpoke /localhost/demo/hello`
-3. on another console, run `ndnpeek /localhost/demo/hello | ndn-dissect`
+3. on another console, run `ndnpeek /localhost/demo/hello | ndndissect`
For more information, consult the manpage.
diff --git a/tools/dissect/main.cpp b/tools/dissect/main.cpp
index b6bf6ba..705258f 100644
--- a/tools/dissect/main.cpp
+++ b/tools/dissect/main.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2024, Regents of the University of California.
+ * Copyright (c) 2014-2025, Regents of the University of California.
*
* This file is part of ndn-tools (Named Data Networking Essential Tools).
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
@@ -78,7 +78,7 @@
}
if (vm.count("version") > 0) {
- std::cout << "ndn-dissect " << tools::VERSION << "\n";
+ std::cout << "ndndissect " << tools::VERSION << "\n";
return 0;
}
diff --git a/tools/dissect/wscript b/tools/dissect/wscript
index 80c6375..413652f 100644
--- a/tools/dissect/wscript
+++ b/tools/dissect/wscript
@@ -8,7 +8,10 @@
use='core-objects')
bld.program(
- target='../../bin/ndn-dissect',
- name='ndn-dissect',
+ target=f'{top}/bin/ndndissect',
+ name='ndndissect',
source='main.cpp',
use='dissect-objects')
+
+ # backward compatibility
+ bld.symlink_as('${BINDIR}/ndn-dissect', 'ndndissect')