autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] AS_INIT: don't encode full path


From: Luke Mewburn
Subject: [PATCH] AS_INIT: don't encode full path
Date: Sat, 4 Jul 2020 10:22:37 +1000
User-agent: Mutt/1.5.20 (2009-12-10)

Fix AS_INIT to use the basename of __file__ instead of the full path.
Allows for reproducible builds.
---
 lib/m4sugar/m4sh.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index af28685..78419e9 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -2141,7 +2141,7 @@ m4_pattern_forbid([^_?AS_])
 # Bangshe and minimal initialization.
 m4_divert_text([BINSH], [@%:@! /bin/sh])
 m4_divert_text([HEADER-COMMENT],
-              [@%:@ Generated from __file__ by m4_PACKAGE_STRING.])
+              [@%:@ Generated from m4_bpatsubst(__file__,[^.*/\(.*\)],[[\1]]) 
by m4_PACKAGE_STRING.])
 m4_divert_text([M4SH-SANITIZE], [_AS_SHELL_SANITIZE])
 m4_divert_text([M4SH-INIT-FN], [m4_text_box([M4sh Shell Functions.])])
 
-- 
1.7.1


Attachment: pgpSVaxn6Tbc5.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]