openbsd-ports/devel/autoconf/2.68/patches/patch-doc_Makefile_in
2011-05-12 00:10:33 +00:00

47 lines
2.3 KiB
Plaintext

$OpenBSD: patch-doc_Makefile_in,v 1.1 2011/05/12 00:10:33 sthen Exp $
--- doc/Makefile.in.orig Wed Sep 22 18:36:18 2010
+++ doc/Makefile.in Sun May 1 20:49:42 2011
@@ -396,6 +396,10 @@ dist-info: $(INFO_DEPS)
for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
if test -f $$file; then \
relfile=`expr "$$file" : "$$d/\(.*\)"`; \
+ ext=`echo $$relfile | sed -e 's/^.*\\.//'`; \
+ relfile=`echo $$relfile | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ relfile=`echo $$relfile | sed -e 's/^.*\///'`; \
+ relfile=`echo $$relfile | sed '$(transform)'`.$$ext; \
test -f "$(distdir)/$$relfile" || \
cp -p $$file "$(distdir)/$$relfile"; \
else :; fi; \
@@ -577,19 +581,26 @@ install-info-am: $(INFO_DEPS)
for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
$$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
if test -f $$ifile; then \
- echo "$$ifile"; \
+ relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
+ ext=`echo $$relfile | sed -e 's/^.*\\.//'`; \
+ relfile=`echo $$relfile | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ relfile=`echo $$relfile | sed -e 's/^.*\///'`; \
+ relfile=`echo $$relfile | sed '$(transform)'`.$$ext; \
+ echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
+ $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
else : ; fi; \
done; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done
+ done
@$(POST_INSTALL)
@if (install-info --version && \
install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
for file in $$list; do \
relfile=`echo "$$file" | sed 's|^.*/||'`; \
+ ext=`echo $$relfile | sed -e 's/^.*\\.//'`; \
+ relfile=`echo $$relfile | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ relfile=`echo $$relfile | sed -e 's/^.*\///'`; \
+ relfile=`echo $$relfile | sed '$(transform)'`.$$ext; \
echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
done; \