$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2006/12/18 20:35:46 espie Exp $ --- doc/Makefile.in.orig Mon Oct 16 22:58:44 2006 +++ doc/Makefile.in Mon Dec 18 20:10:52 2006 @@ -337,6 +337,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; \ @@ -500,6 +504,10 @@ install-info-am: $(INFO_DEPS) $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ if test -f $$ifile; then \ 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; \ @@ -511,6 +519,10 @@ install-info-am: $(INFO_DEPS) list='$(INFO_DEPS)'; \ 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; \