mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Zig 0.14: Updating source has its own Build.Step now
This commit is contained in:
@ -97,8 +97,8 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const wf = b.addWriteFiles();
|
const usf = b.addUpdateSourceFiles();
|
||||||
wf.addCopyFileToSource(
|
usf.addCopyFileToSource(
|
||||||
xgettext.captureStdOut(),
|
xgettext.captureStdOut(),
|
||||||
"po/" ++ domain ++ ".pot",
|
"po/" ++ domain ++ ".pot",
|
||||||
);
|
);
|
||||||
@ -107,8 +107,8 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step {
|
|||||||
const msgmerge = b.addSystemCommand(&.{ "msgmerge", "-q" });
|
const msgmerge = b.addSystemCommand(&.{ "msgmerge", "-q" });
|
||||||
msgmerge.addFileArg(b.path("po/" ++ locale ++ ".po"));
|
msgmerge.addFileArg(b.path("po/" ++ locale ++ ".po"));
|
||||||
msgmerge.addFileArg(xgettext.captureStdOut());
|
msgmerge.addFileArg(xgettext.captureStdOut());
|
||||||
wf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po");
|
usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po");
|
||||||
}
|
}
|
||||||
|
|
||||||
return &wf.step;
|
return &usf.step;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user