Skip to content

Commit

Permalink
move to foxglove subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Aug 25, 2023
1 parent 622ce57 commit b241c9c
Show file tree
Hide file tree
Showing 47 changed files with 11 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 11 additions & 5 deletions scripts/updateGeneratedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,20 @@ async function main({ outDir, rosOutDir }: { outDir: string; rosOutDir: string }
});

await logProgress("Generating OMG IDL definitions", async () => {
await fs.mkdir(path.join(outDir, "omgidl"), { recursive: true });
await fs.writeFile(path.join(outDir, "omgidl", "Time.idl"), TIME_IDL);
await fs.writeFile(path.join(outDir, "omgidl", "Duration.idl"), DURATION_IDL);
await fs.mkdir(path.join(outDir, "omgidl", "foxglove"), { recursive: true });
await fs.writeFile(path.join(outDir, "omgidl", "foxglove", "Time.idl"), TIME_IDL);
await fs.writeFile(path.join(outDir, "omgidl", "foxglove", "Duration.idl"), DURATION_IDL);
for (const schema of Object.values(foxgloveMessageSchemas)) {
await fs.writeFile(path.join(outDir, "omgidl", `${schema.name}.idl`), generateOmgIdl(schema));
await fs.writeFile(
path.join(outDir, "omgidl", "foxglove", `${schema.name}.idl`),
generateOmgIdl(schema),
);
}
for (const schema of Object.values(foxgloveEnumSchemas)) {
await fs.writeFile(path.join(outDir, "omgidl", `${schema.name}.idl`), generateOmgIdl(schema));
await fs.writeFile(
path.join(outDir, "omgidl", "foxglove", `${schema.name}.idl`),
generateOmgIdl(schema),
);
}
});

Expand Down

0 comments on commit b241c9c

Please sign in to comment.