Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | vim: do not adjust script pathnames |
| 2 | |
| 3 | When cross-compiling, we do not want to reference the host versions of |
| 4 | things like perl and awk. |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Joe Slater <joe.slater@windriver.com> |
| 9 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 10 | Index: git/src/Makefile |
| 11 | =================================================================== |
| 12 | --- git.orig/src/Makefile |
| 13 | +++ git/src/Makefile |
| 14 | @@ -2565,11 +2565,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | rm -rf $$cvs; \ |
| 16 | fi |
| 17 | -chmod $(FILEMOD) $(DEST_TOOLS)/* |
| 18 | -# replace the path in some tools |
| 19 | + |
| 20 | +# replace the path in some tools, but not when cross-compiling |
| 21 | +ifneq ($(CROSS_COMPILING),1) |
| 22 | perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl |
| 23 | awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ |
| 24 | awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ |
| 25 | awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi |
| 26 | +endif |
| 27 | -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*` |
| 28 | |
| 29 | # install the language specific files for tools, if they were unpacked |