This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: MakeDefaultMimeTypes fix
- From: Tom Tromey <tromey at redhat dot com>
- To: GCC libjava patches <java-patches at gcc dot gnu dot org>
- Date: 07 Jan 2004 22:11:28 -0700
- Subject: Patch: FYI: MakeDefaultMimeTypes fix
- Reply-to: tromey at redhat dot com
I'm not sure if we use this any more, but it doesn't lex properly.
Fixed uglily as appended.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* scripts/MakeDefaultMimeTypes.java: Use \n, not
backslash-newline.
Index: scripts/MakeDefaultMimeTypes.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/scripts/MakeDefaultMimeTypes.java,v
retrieving revision 1.2
diff -u -r1.2 MakeDefaultMimeTypes.java
--- scripts/MakeDefaultMimeTypes.java 7 Mar 2000 19:55:28 -0000 1.2
+++ scripts/MakeDefaultMimeTypes.java 8 Jan 2004 05:17:41 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation
+/* Copyright (C) 2000, 2003 Free Software Foundation
This file is part of libgcj.
@@ -36,21 +36,7 @@
fatal ("error reading " + args[0]);
}
- System.out.println ("// Do not edit this file! Create a new version with MakeDefaultMimeTypes.\
-\
-/* Copyright (C) 2000 Free Software Foundation\
-\
- This file is part of libgcj.\
-\
-This software is copyrighted work licensed under the terms of the\
-Libgcj License. Please consult the file \"LIBGCJ_LICENSE\" for\
-details. */\
-\
-package gnu.gcj.io; \
-\
-public class DefaultMimeTypes\
-{\
- public static final String[] types = {");
+ System.out.println ("// Do not edit this file! Create a new version with MakeDefaultMimeTypes.\n\n/* Copyright (C) 2000 Free Software Foundation\n\n This file is part of libgcj.\n\nThis software is copyrighted work licensed under the terms of the\nLibgcj License. Please consult the file \"LIBGCJ_LICENSE\" for\ndetails. */\n\npackage gnu.gcj.io; \n\npublic class DefaultMimeTypes\n{\n public static final String[] types = {");
Enumeration keys = mime_table.keys();
Enumeration values = mime_table.elements();
@@ -85,9 +71,7 @@
}
// Append last element with closing bracket
- result.append(" };\
-}\
-");
+ result.append(" };\n}\n");
System.out.println(result);
}
}