java-sources.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #! /bin/sh
  2. # Copyright (C) 2011-2017 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Test definition of automake-generated private Makefile variable
  17. # '$(am__java_sources)'.
  18. . test-init.sh
  19. cat >> configure.ac << 'END'
  20. AC_OUTPUT
  21. END
  22. cat > Makefile.am << 'END'
  23. foodir = $(prefix)
  24. foo_JAVA = a.java
  25. dist_foo_JAVA = b.java
  26. nodist_foo_JAVA = c.java
  27. nobase_foo_JAVA = d.java
  28. nobase_dist_foo_JAVA = e.java
  29. nobase_nodist_foo_JAVA = f.java
  30. .PHONY: debug
  31. debug:
  32. @echo 'am__java_sources: "$(am__java_sources)"'
  33. got:
  34. @lst='$(am__java_sources)'; \
  35. for f in $$lst; do echo $$f; done | sort > $@
  36. END
  37. $ACLOCAL
  38. $AUTOMAKE
  39. $AUTOCONF
  40. cat > exp << 'END'
  41. a.java
  42. b.java
  43. c.java
  44. d.java
  45. e.java
  46. f.java
  47. END
  48. ./configure
  49. $MAKE debug
  50. $MAKE got
  51. cat got
  52. cat exp
  53. diff exp got
  54. :