1From d9c4cdad0c48becab491ea4e80e5cd81f7d1dc97 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 26 Nov 2020 05:38:31 -0800
4Subject: [PATCH] wireshark-src: improve reproducibility
5
6Cut absolute path for filename in generated code
7comments.
8
9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11
12---
13 tools/ncp2222.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/tools/ncp2222.py b/tools/ncp2222.py
17index f14d0c5..05073b9 100755
18--- a/tools/ncp2222.py
19+++ b/tools/ncp2222.py
20@@ -5891,7 +5891,7 @@ def produce_code():
21
22     print("/*")
23     print(" * Do not modify this file. Changes will be overwritten.")
24-    print(" * Generated automatically from %s" % (sys.argv[0]))
25+    print(" * Generated automatically from %s" % (os.path.basename(sys.argv[0])))
26     print(" */\n")
27
28     print("""
29