summaryrefslogtreecommitdiff
path: root/lang/gawk/patches/patch-ab
blob: 5b4c26593cf1f0df991961e53122002eb1b8b0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ab,v 1.8 2003/10/05 15:49:06 wiz Exp $

--- Makefile.in.orig	Fri Jul  4 19:49:07 2003
+++ Makefile.in
@@ -78,7 +78,7 @@ CPPFLAGS = @CPPFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DATADIRNAME = @DATADIRNAME@
 
-DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"$(datadir)/locale\""
+DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"$(prefix)/$(PKGLOCALEDIR)/locale\""
 DEPDIR = @DEPDIR@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
@@ -888,9 +888,7 @@ install-exec-hook:
 	cd $(DESTDIR)$(bindir); \
 	$(LN) gawk $$fullname 2>/dev/null ; \
 	$(LN) pgawk p$$fullname 2>/dev/null ; \
-	if [ ! -f awk$(EXEEXT) ]; \
-	then	$(LN_S) gawk$(EXEEXT) awk$(EXEEXT); \
-	fi; exit 0)
+	exit 0)
 
 # Undo the above when uninstalling
 uninstall-links: