From 14dd9df0f718f8d0815851efe52f3633ec6137b8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Oct 2023 17:46:35 +0000 Subject: makefile: symlink-install: do not depend on realpath For the Makefile, we can use $(PWD) make macro from make(1posix) as POSIX requires all environment variables be accessible as macros, and $PWD is a standard sh(1) environment variable. lei.sh must quiet the stderr of realpath before falling back to readlink(1) which is available on NetBSD. --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 8bd39e6c..38e030f5 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -264,7 +264,7 @@ prefix = \$(HOME) bindir = \$(prefix)/bin symlink-install : lib/PublicInbox.pm mkdir -p \$(bindir) - lei=\$\$(realpath lei.sh) && cd \$(bindir) && \\ + lei="\$(PWD)/lei.sh" && cd \$(bindir) && \\ for x in \$(EXE_FILES); do \\ ln -sf "\$\$lei" \$\$(basename "\$\$x"); \\ done -- cgit v1.2.3-24-ge0c7