Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 1 | From 0a9ab056ce7582033a21d6bc541ece520bf2b0b6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> |
| 3 | Date: Thu, 26 Nov 2020 05:38:31 -0800 |
| 4 | Subject: [PATCH] wireshark-src: improve reproducibility |
| 5 | |
| 6 | Cut absolute path for filename in generated code |
| 7 | comments. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> |
| 11 | --- |
| 12 | tools/make-plugin-reg.py | 2 +- |
| 13 | tools/ncp2222.py | 2 +- |
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/tools/make-plugin-reg.py b/tools/make-plugin-reg.py |
| 17 | index 66b4656..c52b3fc 100755 |
| 18 | --- a/tools/make-plugin-reg.py |
| 19 | +++ b/tools/make-plugin-reg.py |
| 20 | @@ -28,7 +28,7 @@ preamble = """\ |
| 21 | * |
| 22 | * Generated automatically from %s. |
| 23 | */ |
| 24 | -""" % (sys.argv[0]) |
| 25 | +""" % (os.path.basename(sys.argv[0])) |
| 26 | |
| 27 | # Create the proper list of filenames |
| 28 | filenames = [] |
| 29 | diff --git a/tools/ncp2222.py b/tools/ncp2222.py |
| 30 | index 1dea4ec..dc376e3 100755 |
| 31 | --- a/tools/ncp2222.py |
| 32 | +++ b/tools/ncp2222.py |
| 33 | @@ -5858,7 +5858,7 @@ def produce_code(): |
| 34 | |
| 35 | print("/*") |
| 36 | print(" * Do not modify this file. Changes will be overwritten.") |
| 37 | - print(" * Generated automatically from %s" % (sys.argv[0])) |
| 38 | + print(" * Generated automatically from %s" % (os.path.basename(sys.argv[0]))) |
| 39 | print(" */\n") |
| 40 | |
| 41 | print(""" |
| 42 | -- |
| 43 | 2.26.2.Cisco |
| 44 | |