From 67d9e9a278171ea7cd0e9e2c5b754a50887d4752 Mon Sep 17 00:00:00 2001 From: "A. Karl Kornel" Date: Fri, 22 Jan 2016 23:36:04 -0800 Subject: Customize the path to Perl in the server scripts The server scripts now have a unique string where the Perl path should be, and the Makefile uses sed to insert the correct path at build time (using the path determined by configure). The server scripts now have .in extensions, and setting the executable flag is handled by the Makefile. We also have to change autogen, because it looks for the scripts in the server directory when it generates the man pages. --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 87ba959..3e76885 100644 --- a/Makefile.am +++ b/Makefile.am @@ -210,13 +210,19 @@ warnings: # Remove some additional files. CLEANFILES = perl/t/lib/Test/RRA.pm perl/t/lib/Test/RRA/Automake.pm \ - perl/t/lib/Test/RRA/Config.pm + perl/t/lib/Test/RRA/Config.pm $(dist_sbin_SCRIPTS) MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile \ build-aux/depcomp build-aux/install-sh build-aux/missing \ client/wallet.1 config.h.in config.h.in~ configure \ contrib/wallet-report.8 server/keytab-backend.8 \ server/wallet-admin.8 server/wallet-backend.8 server/wallet-report.8 +# For each of the perl scripts in server/, we need to fill in the path to the +# Perl binary that was located during configuration. +$(dist_sbin_SCRIPTS): + sed 's|WALLET_PERL_PATH|$(PERL)|' < $(srcdir)/$@.in > $(srcdir)/$@ + chmod a+x $(srcdir)/$@ + # Take appropriate actions in the Perl directory as well. We don't want to # always build the Perl directory in all-local, since otherwise Automake does # this for every target, which overrides some hacks we have to do for Debian -- cgit v1.2.3