@@ -138,7 +138,7 @@ pub fn build(b: *std.Build) void {
138
138
b .installArtifact (mkfs_fat );
139
139
140
140
// Usage:
141
- var self_dep = std.Build.Dependency {
141
+ var self_dep : std.Build.Dependency = . {
142
142
.builder = b ,
143
143
};
144
144
usageDemo (b , & self_dep , debug_step );
@@ -175,7 +175,7 @@ fn installDebugDisk(
175
175
pub fn initializeDisk (dependency : * std.Build.Dependency , size : u64 , content : Content ) * InitializeDiskStep {
176
176
const ids = dependency .builder .allocator .create (InitializeDiskStep ) catch @panic ("out of memory" );
177
177
178
- ids .* = InitializeDiskStep {
178
+ ids .* = . {
179
179
.step = std .Build .Step .init (.{
180
180
.owner = dependency .builder , // TODO: Is this correct?
181
181
.id = .custom ,
@@ -459,16 +459,16 @@ pub const InitializeDiskStep = struct {
459
459
for (fs .items ) | item | {
460
460
switch (item ) {
461
461
.empty_dir = > | dir | {
462
- try argv .append (b .fmt ("mkdir: {s}" , .{dir }));
462
+ try argv .append (b .fmt ("mkdir; {s}" , .{dir }));
463
463
},
464
464
.copy_dir = > | src_dst | {
465
- try argv .append (b .fmt ("dir: {s}: {s}" , .{
465
+ try argv .append (b .fmt ("dir; {s}; {s}" , .{
466
466
src_dst .source .getPath2 (b , asking ),
467
467
src_dst .destination ,
468
468
}));
469
469
},
470
470
.copy_file = > | src_dst | {
471
- try argv .append (b .fmt ("file: {s}: {s}" , .{
471
+ try argv .append (b .fmt ("file; {s}; {s}" , .{
472
472
src_dst .source .getPath2 (b , asking ),
473
473
src_dst .destination ,
474
474
}));
@@ -564,7 +564,7 @@ pub const InitializeDiskStep = struct {
564
564
try disk .writeAll ("\x00 " );
565
565
try disk .seekTo (0 );
566
566
567
- var context = HumanContext {};
567
+ var context : HumanContext = . {};
568
568
context .appendSliceAssumeCapacity ("disk" );
569
569
570
570
const disk_image = DiskImage {
@@ -943,9 +943,9 @@ pub const FileSystem = struct {
943
943
/// <ops...> is a list of operations that should be performed on the file system:
944
944
/// - format Formats the disk image.
945
945
/// - mount Mounts the file system, must be before all following:
946
- /// - mkdir: <dst> Creates directory <dst> and all necessary parents.
947
- /// - file: <src>: <dst> Copy <src> to path <dst>. If <dst> exists, it will be overwritten.
948
- /// - dir: <src>: <dst> Copy <src> recursively into <dst>. If <dst> exists, they will be merged.
946
+ /// - mkdir; <dst> Creates directory <dst> and all necessary parents.
947
+ /// - file; <src>; <dst> Copy <src> to path <dst>. If <dst> exists, it will be overwritten.
948
+ /// - dir; <src>; <dst> Copy <src> recursively into <dst>. If <dst> exists, they will be merged.
949
949
///
950
950
/// <dst> paths are always rooted, even if they don't start with a /, and always use / as a path separator.
951
951
///
@@ -986,7 +986,7 @@ pub const FileSystemBuilder = struct {
986
986
format : FileSystem.Format ,
987
987
label : []const u8 ,
988
988
}) FileSystem {
989
- return FileSystem {
989
+ return . {
990
990
.format = options .format ,
991
991
.label = fsb .b .dupe (options .label ),
992
992
.items = fsb .list .toOwnedSlice (fsb .b .allocator ) catch @panic ("out of memory" ),
0 commit comments