-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(magic): initial detection rules
- Loading branch information
1 parent
b950a34
commit f089dc2
Showing
57 changed files
with
797 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); |
Oops, something went wrong.