diff options
author | Raul Infante-Sainz <infantesainz@gmail.com> | 2019-03-25 14:45:47 +0000 |
---|---|---|
committer | Raul Infante-Sainz <infantesainz@gmail.com> | 2019-03-25 14:45:47 +0000 |
commit | 7d1d6f88fb28630cc581ea41c487b2b0c0da269f (patch) | |
tree | 3230a14c18d1e1399ddc24bda09f9769503a6911 /reproduce/src | |
parent | 8748d3e93fbe60511912fbe6ac424a6d6352de4f (diff) |
Corrected makelink command to avoid paste command
We just noticed that recently the `paste' command on macOS doesn't work
with a pipe. So we are now simply using the `tr' command in reverse to
re-create the PATH (to find where to link to).
Diffstat (limited to 'reproduce/src')
-rw-r--r-- | reproduce/src/make/dependencies-basic.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reproduce/src/make/dependencies-basic.mk b/reproduce/src/make/dependencies-basic.mk index 76bfa16..b51f35d 100644 --- a/reproduce/src/make/dependencies-basic.mk +++ b/reproduce/src/make/dependencies-basic.mk @@ -202,9 +202,9 @@ $(tarballs): $(tdir)/%: # is very annoying and can cause many complications. We thus remove any # part of PATH of that has `ccache' in it before making symbolic links to # the programs we are not building ourselves. -makelink = origpath="$$PATH"; \ +makelink = origpath="$$PATH"; \ export PATH=$$(echo $(syspath) | tr : '\n' | grep -v ccache \ - | paste -s -d:); \ + | tr '\n' :); \ a=$$(which $(1) 2> /dev/null); \ if [ -e $(ibdir)/$(1) ]; then rm $(ibdir)/$(1); fi; \ if [ x"$(2)" = xcopy ]; then c=cp; else c="ln -s"; fi; \ |