]> git.pld-linux.org Git - packages/gawk.git/blob - gawk-DESTDIR.patch
- removed Prereq: /usr/sbin/fix-info-dir
[packages/gawk.git] / gawk-DESTDIR.patch
1 diff -Nru gawk-3.0.4/Makefile.in gawk-3.0.4.new/Makefile.in
2 --- gawk-3.0.4/Makefile.in      Wed Jun  9 10:36:30 1999
3 +++ gawk-3.0.4.new/Makefile.in  Wed Aug 18 23:57:21 1999
4 @@ -55,6 +55,8 @@
5  datadir = @datadir@/awk
6  libexecdir = @libexecdir@/awk
7  
8 +DESTDIR =
9 +
10  DEFPATH = ".:$(datadir)"
11  
12  SHELL = /bin/sh
13 @@ -175,11 +177,11 @@
14  alloca.o:      alloca.c
15  
16  install:       gawk info installdirs
17 -       -rm -f $(bindir)/gawk
18 +       -rm -f $(DESTDIR)$(bindir)/gawk
19         fullname=gawk-$(REL).`./gawk '{print $$3}' $(srcdir)/patchlevel.h` ; \
20 -       $(INSTALL_PROGRAM) gawk $(bindir)/$$fullname ; \
21 -       (cd $(bindir); $(LN) $$fullname gawk)
22 -       (cd $(bindir); \
23 +       $(INSTALL_PROGRAM) gawk $(DESTDIR)$(bindir)/$$fullname ; \
24 +       (cd $(DESTDIR)$(bindir); $(LN) $$fullname gawk)
25 +       (cd $(DESTDIR)$(bindir); \
26         if [ ! -f awk ]; \
27         then    $(LN_S) gawk awk; \
28         fi; exit 0)
29 @@ -187,8 +189,9 @@
30         cd awklib && $(MAKE) install
31  
32  installdirs: mkinstalldirs
33 -       $(srcdir)/mkinstalldirs $(bindir) $(datadir) \
34 -               $(libdir) $(infodir) $(mandir) $(libexecdir)
35 +       $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) \
36 +               $(DESTDIR)$(libdir) $(DESTDIR)$(infodir) $(DESTDIR)$(mandir) \
37 +               $(DESTDIR)$(libexecdir)
38  
39  uninstall:
40         (cd $(bindir); \
41 diff -Nru gawk-3.0.4/awklib/Makefile.in gawk-3.0.4.new/awklib/Makefile.in
42 --- gawk-3.0.4/awklib/Makefile.in       Wed Oct  7 22:33:20 1998
43 +++ gawk-3.0.4.new/awklib/Makefile.in   Wed Aug 18 23:57:21 1999
44 @@ -73,13 +73,13 @@
45         sed 's;/usr/local/libexec/awk;$(libexecdir);' < groupawk.in) > group.awk
46  
47  install: igawk $(AUXPROGS) $(AUXAWK)
48 -       $(INSTALL_PROGRAM) igawk $(bindir)/igawk
49 +       $(INSTALL_PROGRAM) igawk $(DESTDIR)$(bindir)/igawk
50         for i in $(AUXPROGS) ; do \
51 -               $(INSTALL_PROGRAM) $$i $(libexecdir)/$$i ; \
52 +               $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libexecdir)/$$i ; \
53         done
54         for i in $(AUXAWK) $(srcdir)/eg/lib/*.awk ; do \
55                 progname=`echo $$i | sed 's;.*/;;'` ; \
56 -               $(INSTALL_DATA) $$i $(datadir)/$$progname ; \
57 +               $(INSTALL_DATA) $$i $(DESTDIR)$(datadir)/$$progname ; \
58         done
59  
60  # libexecdir and datadir are removed in the top level Makefile's uninstall
61 diff -Nru gawk-3.0.4/doc/Makefile.in gawk-3.0.4.new/doc/Makefile.in
62 --- gawk-3.0.4/doc/Makefile.in  Wed Apr 28 16:21:56 1999
63 +++ gawk-3.0.4.new/doc/Makefile.in      Thu Aug 19 00:00:15 1999
64 @@ -69,9 +69,9 @@
65  
66  all: $(DOCS) info
67  
68 -install: $(mandir)/gawk$(manext) $(mandir)/igawk$(manext) $(infodir)/gawk.info
69 +install: $(DESTDIR)$(mandir)/gawk$(manext) $(DESTDIR)$(mandir)/igawk$(manext) $(DESTDIR)$(infodir)/gawk.info
70  
71 -$(infodir)/gawk.info::
72 +$(DESTDIR)$(infodir)/gawk.info::
73         -if test -f gawk.info; then d=.; \
74         else d=$(srcdir); fi; \
75         if    [ -f $(infodir)/dir -a -f $(infodir)/gawk.info ] \
76 @@ -80,17 +80,17 @@
77                 exit 0; \
78         fi; \
79         for i in $$d/gawk.info*; do \
80 -               $(INSTALL_DATA) $$i $(infodir)/$$i ; \
81 +               $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
82         done; \
83         if $(SHELL) -c 'install-info --version' > /dev/null 2>&1 ; \
84 -       then install-info --info-dir=$(infodir) gawk.info ; \
85 +       then install-info --info-dir=$(DESTDIR)$(infodir) gawk.info ; \
86         else true ; fi; exit 0
87  
88 -$(mandir)/gawk$(manext):: gawk.1
89 -       $(INSTALL_DATA) $(srcdir)/gawk.1 $(mandir)/gawk$(manext)
90 +$(DESTDIR)$(mandir)/gawk$(manext):: gawk.1
91 +       $(INSTALL_DATA) $(srcdir)/gawk.1 $(DESTDIR)$(mandir)/gawk$(manext)
92  
93 -$(mandir)/igawk$(manext):: igawk.1
94 -       $(INSTALL_DATA) $(srcdir)/igawk.1 $(mandir)/igawk$(manext)
95 +$(DESTDIR)$(mandir)/igawk$(manext):: igawk.1
96 +       $(INSTALL_DATA) $(srcdir)/igawk.1 $(DESTDIR)$(mandir)/igawk$(manext)
97  
98  uninstall:
99         rm -f $(mandir)/gawk$(manext) $(mandir)/igawk$(manext) $(infodir)/gawk.info*
This page took 0.096771 seconds and 3 git commands to generate.