diff options
author | pinicarus <[email protected]> | 2020-11-22 20:47:31 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-30 16:16:17 +0100 |
commit | 1762278d9654e5f90ab587cbde7bac0e2b220014 (patch) | |
tree | 8e87aac0a8d496c43ecaf8fdf1b08347da9633fa | |
parent | cfce77e33b375d125283a0c22b643dcb6cc1af44 (diff) | |
download | erlang.mk-1762278d9654e5f90ab587cbde7bac0e2b220014.tar.gz erlang.mk-1762278d9654e5f90ab587cbde7bac0e2b220014.tar.bz2 erlang.mk-1762278d9654e5f90ab587cbde7bac0e2b220014.zip |
fix: replace perl usage with coreutils
-rw-r--r-- | core/core.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/core.mk b/core/core.mk index 77adc2e..5f2af67 100644 --- a/core/core.mk +++ b/core/core.mk @@ -191,8 +191,7 @@ core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F, core_ls = $(filter-out $(1),$(shell echo $(1))) -# @todo Use a solution that does not require using perl. -core_relpath = $(shell perl -e 'use File::Spec; print File::Spec->abs2rel(@ARGV) . "\n"' $1 $2) +core_relpath = $(shell realpath --canonicalize-missing --relative-to=$2 $1) define core_render printf -- '$(subst $(newline),\n,$(subst %,%%,$(subst ','\'',$(subst $(tab),$(WS),$(call $(1))))))\n' > $(2) |