patch-examples_Makefile_in 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-examples_Makefile_in,v 1.2 2009/06/16 15:31:02 kurt Exp $
  2. --- examples/Makefile.in.orig Thu Feb 5 20:01:32 2009
  3. +++ examples/Makefile.in Wed Mar 4 10:31:08 2009
  4. @@ -518,7 +518,7 @@ uninstall-am: uninstall-exampleDATA uninstall-local
  5. install-data-local:
  6. srcdir_cnt=`echo $(srcdir) | wc -c`; \
  7. for file in $(ALL_EXAMPLE_FILES); do \
  8. - f=`echo $$file | cut -c$$srcdir_cnt-`; \
  9. + f=`echo $$file | cut -c$$((srcdir_cnt))-`; \
  10. fdir=`dirname $$f`; \
  11. if test ! -d $(DESTDIR)$(pkgdatadir)/examples/$$fdir; then \
  12. echo "$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/examples/$$fdir"; \
  13. @@ -535,7 +535,7 @@ install-data-local:
  14. uninstall-local:
  15. srcdir_cnt=`echo $(srcdir) | wc -c`; \
  16. for file in $(ALL_EXAMPLE_FILES); do \
  17. - f=`echo $$file | cut -c$$srcdir_cnt-`; \
  18. + f=`echo $$file | cut -c$$(srcdir_cnt))-`; \
  19. echo "rm -f $(DESTDIR)$(pkgdatadir)/examples/$$f"; \
  20. rm -f $(DESTDIR)$(pkgdatadir)/examples/$$f; \
  21. done
  22. @@ -546,7 +546,7 @@ uninstall-local:
  23. dist-hook:
  24. srcdir_cnt=`echo $(srcdir) | wc -c`; \
  25. for file in $(ALL_EXAMPLE_FILES); do \
  26. - f=`echo $$file | cut -c$$srcdir_cnt-`; \
  27. + f=`echo $$file | cut -c$$((srcdir_cnt))-`; \
  28. fdir=`dirname $$f`; \
  29. if test ! -d $(distdir)/$$fdir; then \
  30. echo "$(makeinstalldirs) $(distdir)/$$fdir"; \