openbsd-ports/devel/gdb/patches/patch-gdb_doc_Makefile_in
2014-08-14 07:50:24 +00:00

32 lines
1.2 KiB
Plaintext

$OpenBSD: patch-gdb_doc_Makefile_in,v 1.2 2014/08/14 07:50:24 pascal Exp $
--- gdb/doc/Makefile.in.orig Wed Jun 11 18:34:41 2014
+++ gdb/doc/Makefile.in Tue Jul 29 20:27:50 2014
@@ -29,6 +29,7 @@ htmldir = @htmldir@
mandir = @mandir@
man1dir = $(mandir)/man1
man5dir = $(mandir)/man5
+program_transform_name = @program_transform_name@
SHELL = @SHELL@
@@ -308,7 +309,8 @@ install-man1: $(MAN1S)
continue; \
fi; \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=`echo $$p | sed -e 's|^.*/||'`; \
+ t='$(program_transform_name)'; \
+ f=`echo $$p | sed -e 's|^.*/||' | sed -e "$$t"`; \
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(man1dir)/$$f'"; \
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(man1dir)/$$f"; \
done
@@ -317,7 +319,8 @@ install-man5: $(MAN5S)
test -z "$(man5dir)" || $(mkinstalldirs) "$(DESTDIR)$(man5dir)"
@list='$(MAN5S)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=`echo $$p | sed -e 's|^.*/||'`; \
+ t='$(program_transform_name)'; \
+ f=`echo $$p | sed -e 's|^.*/||' | sed -e "$$t"`; \
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(man5dir)/$$f'"; \
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(man5dir)/$$f"; \
done