From bda7183b9cb360ea7a41ec1dbdcde3991af15a41 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 15 Oct 2022 10:51:55 -0400 Subject: [PATCH] too dead --- java_tools/path2iar/.idea/misc.xml | 22 ------ java_tools/path2iar/.idea/modules.xml | 8 --- java_tools/path2iar/path2iar.iml | 11 --- .../path2iar/src/com/rusefi/Path2IAR.java | 70 ------------------- 4 files changed, 111 deletions(-) delete mode 100644 java_tools/path2iar/.idea/misc.xml delete mode 100644 java_tools/path2iar/.idea/modules.xml delete mode 100644 java_tools/path2iar/path2iar.iml delete mode 100644 java_tools/path2iar/src/com/rusefi/Path2IAR.java diff --git a/java_tools/path2iar/.idea/misc.xml b/java_tools/path2iar/.idea/misc.xml deleted file mode 100644 index 2e47c90c3c..0000000000 --- a/java_tools/path2iar/.idea/misc.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - 1.8 - - - - - - - - \ No newline at end of file diff --git a/java_tools/path2iar/.idea/modules.xml b/java_tools/path2iar/.idea/modules.xml deleted file mode 100644 index 09d381e4a1..0000000000 --- a/java_tools/path2iar/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/java_tools/path2iar/path2iar.iml b/java_tools/path2iar/path2iar.iml deleted file mode 100644 index c90834f2d6..0000000000 --- a/java_tools/path2iar/path2iar.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/java_tools/path2iar/src/com/rusefi/Path2IAR.java b/java_tools/path2iar/src/com/rusefi/Path2IAR.java deleted file mode 100644 index b2d0f28666..0000000000 --- a/java_tools/path2iar/src/com/rusefi/Path2IAR.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.rusefi; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; - -/** - * (c) Andrey Belomutskiy - * 3/30/2017. - */ -public class Path2IAR { - private static final String EOL = "\n"; - private static final String RELATIVE = "..\\..\\firmware/ChibiOS/os"; - private static String includes = ""; - - public static void main(String[] args) throws IOException { - String result = process(" ", new File(RELATIVE)); - - - System.out.println("Result:" + EOL + EOL + EOL + EOL + EOL + EOL); - System.out.println(result.length()); - - new FileOutputStream("group.txt", false).write(result.getBytes()); - - System.out.println("Headers:" + EOL + EOL + EOL + EOL + EOL + EOL); - System.out.println(includes); - } - - private static String process(String offset, File folder) { - System.out.println("Folder " + folder); - if (!folder.isDirectory()) - throw new IllegalStateException("Not a directory: " + folder); - - - includes += "$PROJ_DIR$\\..\\ChibiOS\\os" + folder.getPath().substring(RELATIVE.length()) + "" + EOL; - - - String group = offset + "\n" + - offset + " " + folder.getName() + "\n"; - - - for (String fileName : folder.list()) { - File file = new File(folder.getPath() + File.separator + fileName); - System.out.println(file); - - if (file.isDirectory()) { - group += process(offset + " ", file); - continue; - } - - if (!fileName.endsWith(".cpp") && !fileName.endsWith(".c") && !fileName.endsWith("h")) - continue; - - - String name = file.getPath().substring(RELATIVE.length()); - - group += offset + "\n" + - offset + " $PROJ_DIR$\\..\\ChibiOS\\os" + name + "\n" + - offset + "\n"; - - } - - - - - return group + offset + "" + EOL; - - } -}