ports/lang/gawk/files/patch-Makefile
Johan van Selst b307e9e6ef Fix installation on FreeBSD < 10
Avoid running undefined RM command on files outside STAGEDIR

Submitted by:   antoine
2014-04-21 12:29:40 +00:00

12 lines
389 B
Plaintext

--- Makefile.in.orig 2014-04-08 18:12:38.000000000 +0200
+++ Makefile.in 2014-04-21 14:23:45.000000000 +0200
@@ -1151,7 +1151,7 @@ uninstall-am: uninstall-binPROGRAMS unin
install-exec-hook:
(cd $(DESTDIR)$(bindir); \
$(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
- if [ ! -f awk ]; \
+ if ! /usr/bin/which -s awk; \
then $(LN_S) gawk$(EXEEXT) awk; \
fi; exit 0)