diff options
author | Loïc Hoguin <[email protected]> | 2020-12-04 10:36:49 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-12-04 10:36:49 +0100 |
commit | e0409808c5f0e8bebc8659abd7caa506af47dc8c (patch) | |
tree | 62910d247cc69a3cac7cfb869b040f4f92f8acd1 | |
parent | c8ecd5c0fe44cce26e9f32df45f9cd576f1983bb (diff) | |
download | erlang.mk-e0409808c5f0e8bebc8659abd7caa506af47dc8c.tar.gz erlang.mk-e0409808c5f0e8bebc8659abd7caa506af47dc8c.tar.bz2 erlang.mk-e0409808c5f0e8bebc8659abd7caa506af47dc8c.zip |
Revert "fix: replace perl usage with coreutils"
This reverts commit 1762278d9654e5f90ab587cbde7bac0e2b220014.
-rw-r--r-- | core/core.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/core.mk b/core/core.mk index 5f2af67..77adc2e 100644 --- a/core/core.mk +++ b/core/core.mk @@ -191,7 +191,8 @@ 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))) -core_relpath = $(shell realpath --canonicalize-missing --relative-to=$2 $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) define core_render printf -- '$(subst $(newline),\n,$(subst %,%%,$(subst ','\'',$(subst $(tab),$(WS),$(call $(1))))))\n' > $(2) |