Hash :
16912bdf
Author :
Date :
2011-09-18T16:32:46
Merge branch 'java-work' * java-work: fix: remove duplicated ChangeLog entries java: allow both JAVA and nobase_JAVA in the same Makefile.am java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am fix: regenerate tests/Makefile.in tests defs: use `skip_' for skipping java-related tests java tests: use $PATH_SEPARATOR where appropriate java coverage: test JAVACFLAGS and AM_JAVACFLAGS java coverage: test rebuild rules for java java coverage: try to build and run a java program test defs: new requirement for the default java interpreter java tests: tweak and make stricter a couple of tests java coverage: add test on uninstall with JAVA primary java tests: require java compiler more properly java: allow both JAVA and nobase_JAVA in the same Makefile.am java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
#! /bin/sh
# Copyright (C) 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure that noinst_JAVA causes generated *.class files not to
# be installed.
required=javac
. ./defs || Exit 1
cat >> configure.in << 'END'
AC_OUTPUT
END
cat > Makefile.am <<'END'
noinst_JAVA = 1.java
dist_noinst_JAVA = 2.java
nodist_noinst_JAVA = 3.java
nobase_noinst_JAVA = 4.java
nobase_dist_noinst_JAVA = 5.java
nobase_nodist_noinst_JAVA = 6.java
END
for i in 1 2 3 4 5 6; do
echo "class Class$i {}" > $i.java
done
$ACLOCAL
$AUTOMAKE
$AUTOCONF
./configure --prefix="`pwd`/_inst"
$MAKE
ls -l
for i in 1 2 3 4 5 6; do
test -f Class$i.class
done
$MAKE install
test -d _inst && { ls -l _inst; Exit 1; }
: