Skip to content

Commit

Permalink
feat(magic): initial detection rules
Browse files Browse the repository at this point in the history
  • Loading branch information
deciduously committed Dec 5, 2024
1 parent b950a34 commit f089dc2
Show file tree
Hide file tree
Showing 57 changed files with 797 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/autobuild/autotools/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import * as std from "std" with { path: "../../std" };
import { $ } from "std" with { path: "../../std" };

import * as autoconf from "autoconf" with { path: "../../autoconf" };
import * as automake from "automake" with { path: "../../automake" };
import * as gettext from "gettext" with { path: "../../gettext" };
import * as help2man from "help2man" with { path: "../../help2man" };
import * as perl from "perl" with { path: "../../perl" };
import * as texinfo from "texinfo" with { path: "../../texinfo" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
// TODO - compbine env with the imported tools.
return std.autotools.build(arg);
});

export default default_;
18 changes: 18 additions & 0 deletions packages/autobuild/cc/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/cmake/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/go/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };
import { $ } from "std" with { path: "../../std" };
import * as go from "go" with { path: "../../go" };

// FIXME - this file seems unnecessary

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return go.build(arg);
});

export default default_;
18 changes: 18 additions & 0 deletions packages/autobuild/js/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/python-poetry/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/python/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/ruby/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
18 changes: 18 additions & 0 deletions packages/autobuild/rust/tangram.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as std from "std" with { path: "../../std" };

export type Arg = {
build?: string;
env?: std.env.Arg;
host?: string;
source: tg.Directory;
};

export const default_ = tg.target(async (arg: Arg) => {
return tg.unimplemented();
});

export default default_;

export const test = tg.target(async () => {
return tg.unimplemented();
});
Loading

0 comments on commit f089dc2

Please sign in to comment.