From fb9337930a80114dc1f22dc7143064591d882567 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 23 Dec 2019 00:22:43 +0100 Subject: [PATCH] Show relpath, so should be easy to just copy & paste into %%build macro --- check-shebang.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-shebang.py b/check-shebang.py index 75c37d7..fe04522 100755 --- a/check-shebang.py +++ b/check-shebang.py @@ -63,8 +63,8 @@ def gf(files): newfiles.append(f) newfiles.sort() for i in range(0, len(newfiles) - 1): - print("\t%s \\\n" % newfiles[i], end='') - print("\t%s\n" % newfiles[len(newfiles) - 1]) + print("\t%s \\\n" % os.path.relpath(newfiles[i], start=args.sourcedir), end='') + print("\t%s\n" % os.path.relpath(newfiles[len(newfiles) - 1], start=args.sourcedir)) print("\n# Copy from here:", file=sys.stderr) print("# %s " % sys.argv[0], end='') -- 2.44.0