diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 55e7604..e13cea0 100644 --- a/src/main.zig +++ b/src/main.zig @@ -110,8 +110,10 @@ const Main_Command = struct { \\ .portversion - Current version of the port \\ .category - Category of the port \\ .distdir - Directory containing all distfiles - \\ .distname - Name of the unnamed distribution file - \\ .distname.⟨name⟩ - Name of a named distribution file + \\ .distname - Name of the unnamed distribution + \\ .distname.⟨name⟩ - Name of a named distribution + \\ .distfile - Name of the archive containing unnamed distribution + \\ .distfile.⟨name⟩ - Name of the archive containing named distribution , }, .{ @@ -121,7 +123,7 @@ const Main_Command = struct { \\the port needs to be built. By default porteur creates a gzipped archive \\of the whole Git repository and puts it in the configured `distfiles-dir` \\(see `porteur.conf.sample`). The filename of this archive is provided - \\in the `.distname` variable and its directory in `.distdir` (see + \\in the `.distfile` variable and its directory in `.distdir` (see \\VARIABLES). \\ \\This behaviour, however, can be configured. With the `dist.prepare-target` @@ -996,16 +998,22 @@ const Port_Command = struct { const opts: port.Update_Options = .{ .force = self.options.force.value_or_default(), }; + var count: usize = 0; + var need_newlines = false; while (cli.next_positional()) |port_name| { - count += 1; + if (need_newlines) cli.stderr.write("\n\n", .{}); try update_single_port(ctx, port_name, opts); + count += 1; + need_newlines = true; } if (count == 0) { var iter = try port.iterate(ctx); defer iter.deinit(); while (try iter.next()) |p| { + if (need_newlines) cli.stderr.write("\n\n", .{}); try update_single_port(ctx, p.name, opts); + need_newlines = true; } } } |