2 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
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)
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.
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/>.
17 # Test distribution of *_PYTHON files.
19 # This test does not require python.
22 cat >> configure.ac << 'END'
23 AM_PATH_PYTHON([], [:], [:])
27 cat > Makefile.am << 'END'
28 python_PYTHON = python.py
29 dist_python_PYTHON = python-dist.py
30 nodist_python_PYTHON = python-nodist.py
32 pkgpython_PYTHON = pkgpython.py
33 dist_pkgpython_PYTHON = pkgpython-dist.py
34 nodist_pkgpython_PYTHON = pkgpython-nodist.py
38 dist_my_PYTHON = my-dist.py
39 nodist_my_PYTHON = my-nodist.py
41 my.py my-dist.py my-nodist.py:
47 test -f $(distdir)/python.py
48 test -f $(distdir)/python-dist.py
49 test ! -f $(distdir)/python-nodist.py
50 test -f $(distdir)/pkgpython.py
51 test -f $(distdir)/pkgpython-dist.py
52 test ! -f $(distdir)/pkgpython-nodist.py
53 test -f $(distdir)/my.py
54 test -f $(distdir)/my-dist.py
55 test ! -f $(distdir)/my-nodist.py
64 : > pkgpython-nodist.py
75 # It's not distributed, hence it shouldn't be needlessly generated.
76 test ! -e my-nodist.py