╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ update_netbsd_libc.zig ───────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
42 for (exempt_files) |p| { 43 if (std.mem.eql(u8, entry.path, p)) continue :walk; 44 } 45 46 std.log.info("updating '{s}/{s}' from '{s}/{s}'", .{ 47 dest_dir_path, entry.path, 48 netbsd_src_path, entry.path, 49 }); 50 51 netbsd_src_dir.copyFile(entry.path, dest_dir, entry.path, io, .{}) catch |err| { 52 std.log.warn("unable to copy '{s}/{s}' to '{s}/{s}': {t}", .{ 53 netbsd_src_path, entry.path, dest_dir_path, entry.path, err, 54 }); 55 if (err == error.FileNotFound) { 56 try dest_dir.deleteFile(io, entry.path); 57 } 58 }; 59 } 60 } 61 } 62