diff options
author | Michael Koch <konqueror@gmx.de> | 2004-01-30 21:37:09 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-01-30 21:37:09 +0000 |
commit | 814bdc100853bfecb90c47a6b5ae9e934f993cb9 (patch) | |
tree | 808b7ca7ecb1a61caed8687481b737bbdacbf74f /lib | |
parent | 8473ffe4149c35ead81d48b39552da85e56f2d32 (diff) | |
download | classpath-814bdc100853bfecb90c47a6b5ae9e934f993cb9.tar.gz |
2004-01-30 Michael Koch <konqueror@gmx.de>
* configure.ac (AC_CONFIG_FILES): Removed lib/gen_nio.sh and fixed
quotation.
* java/nio/GenericBuffer.cpp: Removed.
* lib/gen_nio.sh.in: Removed.
* lib/Makefile.am: Removed rule to regenerate NIO buffer classes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rwxr-xr-x | lib/gen_nio.sh.in | 137 |
2 files changed, 0 insertions, 140 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index ce064e9a0..655905ffa 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -111,9 +111,6 @@ classes: genclasses genclasses: gen-classlist.sh standard.omit top_builddir=$(top_builddir) $(SHELL) ./gen-classlist.sh standard -gennio: - top_builddir=$(top_builddir) $(SHELL) ./gen_nio.sh - $(JAVA_DEPEND): genclasses compile-classes: classes $(JAVA_SRCS) Makefile diff --git a/lib/gen_nio.sh.in b/lib/gen_nio.sh.in deleted file mode 100755 index baf13bc3a..000000000 --- a/lib/gen_nio.sh.in +++ /dev/null @@ -1,137 +0,0 @@ -#! /bin/sh - -export CLASSPATH_SRC=@top_srcdir@ - -# generate java.nio.ByteBuffer etc - -echo "#define TYPE Byte" > ${top_builddir}/include/temp.h -echo "#define ELT byte" >> ${top_builddir}/include/temp.h -echo "#define SIZE 1" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/ByteBuffer/g > $CLASSPATH_SRC/java/nio/ByteBuffer.java - - -echo "#define TYPE Short" > ${top_builddir}/include/temp.h -echo "#define ELT short" >> ${top_builddir}/include/temp.h -echo "#define SIZE 2" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/ShortBuffer/g > $CLASSPATH_SRC/java/nio/ShortBuffer.java - - -echo "#define TYPE Char" > ${top_builddir}/include/temp.h -echo "#define ELT char" >> ${top_builddir}/include/temp.h -echo "#define SIZE 2" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/CharBuffer/g > $CLASSPATH_SRC/java/nio/CharBuffer.java - - -echo "#define TYPE Int" > ${top_builddir}/include/temp.h -echo "#define ELT int" >> ${top_builddir}/include/temp.h -echo "#define SIZE 4" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/IntBuffer/g > $CLASSPATH_SRC/java/nio/IntBuffer.java - - -echo "#define TYPE Long" > ${top_builddir}/include/temp.h -echo "#define ELT long" >> ${top_builddir}/include/temp.h -echo "#define SIZE 8" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/LongBuffer/g > $CLASSPATH_SRC/java/nio/LongBuffer.java - - -echo "#define TYPE Float" > ${top_builddir}/include/temp.h -echo "#define ELT float" >> ${top_builddir}/include/temp.h -echo "#define SIZE 4" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/FloatBuffer/g > $CLASSPATH_SRC/java/nio/FloatBuffer.java - - -echo "#define TYPE Double" > ${top_builddir}/include/temp.h -echo "#define ELT double" >> ${top_builddir}/include/temp.h -echo "#define SIZE 8" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/DoubleBuffer/g > $CLASSPATH_SRC/java/nio/DoubleBuffer.java - -#generate the implementation classes of the above: - -echo "#define TYPE Byte" > ${top_builddir}/include/temp.h -echo "#define ELT byte" >> ${top_builddir}/include/temp.h -echo "#define SIZE 1" >> ${top_builddir}/include/temp.h -echo "#define BYTE 1" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/ByteBuffer/g > $CLASSPATH_SRC/gnu/java/nio/ByteBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Byte/g > $CLASSPATH_SRC/gnu/java/nio/MappedByteFileBuffer.java - - -echo "#define TYPE Short" > ${top_builddir}/include/temp.h -echo "#define ELT short" >> ${top_builddir}/include/temp.h -echo "#define SIZE 2" >> ${top_builddir}/include/temp.h -echo "#define SHORT 2" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/ShortBuffer/g > $CLASSPATH_SRC/gnu/java/nio/ShortBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Short/g > $CLASSPATH_SRC/gnu/java/nio/MappedShortFileBuffer.java - - -echo "#define TYPE Char" > ${top_builddir}/include/temp.h -echo "#define ELT char" >> ${top_builddir}/include/temp.h -echo "#define SIZE 2" >> ${top_builddir}/include/temp.h -echo "#define CHAR 2" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/CharBuffer/g > $CLASSPATH_SRC/gnu/java/nio/CharBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Char/g > $CLASSPATH_SRC/gnu/java/nio/MappedCharFileBuffer.java - - - -echo "#define TYPE Int" > ${top_builddir}/include/temp.h -echo "#define ELT int" >> ${top_builddir}/include/temp.h -echo "#define SIZE 4" >> ${top_builddir}/include/temp.h -echo "#define INT 2" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/IntBuffer/g > $CLASSPATH_SRC/gnu/java/nio/IntBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Int/g > $CLASSPATH_SRC/gnu/java/nio/MappedIntFileBuffer.java - - - -echo "#define TYPE Long" > ${top_builddir}/include/temp.h -echo "#define ELT long" >> ${top_builddir}/include/temp.h -echo "#define SIZE 8" >> ${top_builddir}/include/temp.h -echo "#define LONG" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/LongBuffer/g > $CLASSPATH_SRC/gnu/java/nio/LongBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Long/g > $CLASSPATH_SRC/gnu/java/nio/MappedLongFileBuffer.java - - - - -echo "#define TYPE Float" > ${top_builddir}/include/temp.h -echo "#define ELT float" >> ${top_builddir}/include/temp.h -echo "#define SIZE 4" >> ${top_builddir}/include/temp.h -echo "#define FLOAT" >> ${top_builddir}/include/temp.h - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/FloatBuffer/g > $CLASSPATH_SRC/gnu/java/nio/FloatBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Float/g > $CLASSPATH_SRC/gnu/java/nio/MappedFloatFileBuffer.java - - - -echo "#define TYPE Double" > ${top_builddir}/include/temp.h -echo "#define ELT double" >> ${top_builddir}/include/temp.h -echo "#define SIZE 8" >> ${top_builddir}/include/temp.h -echo "#define DOUBLE 8" >> ${top_builddir}/include/temp.h -gcc $CLASSPATH_SRC/gnu/java/nio/GenericBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/BUFFER/DoubleBuffer/g > $CLASSPATH_SRC/gnu/java/nio/DoubleBufferImpl.java - -gcc $CLASSPATH_SRC/gnu/java/nio/GenericMappedByteFileBuffer.cpp -E -P -I${top_builddir}/include > temp -cat temp | sed s/TYPE/Double/g > $CLASSPATH_SRC/gnu/java/nio/MappedDoubleFileBuffer.java |