diff options
author | Mark Wielaard <mark@klomp.org> | 2005-05-06 14:40:12 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2005-05-06 14:40:12 +0000 |
commit | 9e1729049bf77989d437c0eab0585abb4ac5b8e3 (patch) | |
tree | 87a6d62db1896f15be69e4e875869ac0f20154a1 /lib/gen-classlist.sh.in | |
parent | 7fd88055acfa63a92e311aba52dcc1568a52ba4e (diff) | |
download | classpath-9e1729049bf77989d437c0eab0585abb4ac5b8e3.tar.gz |
2005-05-06 Mark Wielaard <mark@klomp.org>
Reported by Kalle Olavi Niemitalo <kon@iki.fi>.
Workaround for gcj bug #21418
* lib/gen-classlist.sh.in: Set LC_ALL and LANG to C. Sort result of
find.
Diffstat (limited to 'lib/gen-classlist.sh.in')
-rwxr-xr-x | lib/gen-classlist.sh.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/gen-classlist.sh.in b/lib/gen-classlist.sh.in index 486d979ee..4276e753f 100755 --- a/lib/gen-classlist.sh.in +++ b/lib/gen-classlist.sh.in @@ -1,17 +1,22 @@ #! @SH@ # @configure_input@ +# Make sure sorting is done the same on all configurations +LC_ALL=C; export LC_ALL +LANG=C; export LANG + echo "Adding java source files from srcdir '@top_srcdir@'." @FIND@ @top_srcdir@/java @top_srcdir@/javax @top_srcdir@/gnu \ @top_srcdir@/org @top_srcdir@/vm/reference \ @top_srcdir@/external/w3c_dom @top_srcdir@/external/sax \ - -follow -type f -print | grep '\.java$' > ${top_builddir}/lib/classes.1 + -follow -type f -print | sort | grep '\.java$' \ + > ${top_builddir}/lib/classes.1 # Only include generated files once. if test ! "${top_builddir}" -ef "@top_srcdir@"; then echo "Adding generated files in builddir '${top_builddir}'." @FIND@ ${top_builddir}/gnu ${top_builddir}/java -follow -type f -print \ - | grep '\.java$' >> ${top_builddir}/lib/classes.1 + | sort | grep '\.java$' >> ${top_builddir}/lib/classes.1 fi for filexp in `cat @top_srcdir@/lib/$1.omit` ; do { grep -v ${filexp} < ${top_builddir}/lib/classes.1 > ${top_builddir}/lib/classes.2 ; mv ${top_builddir}/lib/classes.2 ${top_builddir}/lib/classes.1 ; } ; done |