dev: update ensure-standard-files for new libs/ directory
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6e881b21a6
commit
bf096e2a0c
1 changed files with 9 additions and 8 deletions
|
|
@ -20,20 +20,21 @@ const projects = [_][]const u8{
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
inline for (projects) |project| {
|
inline for (projects) |project| {
|
||||||
copyFile("dev/template/LICENSE", "libs/" ++ project ++ "/LICENSE");
|
const libs = comptime if (!std.mem.eql(u8, project, ".")) "libs/" else "";
|
||||||
copyFile("dev/template/LICENSE-MIT", "libs/" ++ project ++ "/LICENSE-MIT");
|
copyFile("dev/template/LICENSE", libs ++ project ++ "/LICENSE");
|
||||||
copyFile("dev/template/LICENSE-APACHE", "libs/" ++ project ++ "/LICENSE-APACHE");
|
copyFile("dev/template/LICENSE-MIT", libs ++ project ++ "/LICENSE-MIT");
|
||||||
copyFile("dev/template/.gitattributes", "libs/" ++ project ++ "/.gitattributes");
|
copyFile("dev/template/LICENSE-APACHE", libs ++ project ++ "/LICENSE-APACHE");
|
||||||
copyFile("dev/template/.gitignore", "libs/" ++ project ++ "/.gitignore");
|
copyFile("dev/template/.gitattributes", libs ++ project ++ "/.gitattributes");
|
||||||
|
copyFile("dev/template/.gitignore", libs ++ project ++ "/.gitignore");
|
||||||
|
|
||||||
if (!std.mem.eql(u8, project, ".")) {
|
if (!std.mem.eql(u8, project, ".")) {
|
||||||
copyFile(
|
copyFile(
|
||||||
"dev/template/.github/pull_request_template.md",
|
"dev/template/.github/pull_request_template.md",
|
||||||
"libs/" ++ project ++ "/.github/pull_request_template.md",
|
libs ++ project ++ "/.github/pull_request_template.md",
|
||||||
);
|
);
|
||||||
replaceInFile(project ++ "/.github/pull_request_template.md", "foobar", project);
|
replaceInFile(libs ++ project ++ "/.github/pull_request_template.md", "foobar", project);
|
||||||
}
|
}
|
||||||
copyFile("dev/template/.github/FUNDING.yml", "libs/" ++ project ++ "/.github/FUNDING.yml");
|
copyFile("dev/template/.github/FUNDING.yml", libs ++ project ++ "/.github/FUNDING.yml");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue