From: Mark Wooding Date: Mon, 21 Mar 2022 15:57:19 +0000 (+0000) Subject: update: Leave checking file existence to the report script. X-Git-Url: https://git.distorted.org.uk/~mdw/dvddb/commitdiff_plain/75a5b9248f89fd40189035093b751a7bbcd0292d update: Leave checking file existence to the report script. This makes tracking file renames rather easier. --- diff --git a/update b/update index 0fadbcd..279ac19 100755 --- a/update +++ b/update @@ -108,14 +108,9 @@ LINE: while (<>) { } else { defined $name or die "missing name"; } - } elsif (/^ \s+ !! \s* (\S .*) $/x) { + } elsif (/^ \s+ (?: !! \s*)? (\S .*) $/x) { my $path = $1; defined $id or die "no active set"; - push @path, undef; - } elsif (/^ \s+ (\S .*) $/x) { - my $path = $1; - defined $id or die "no active set"; - -f "$ROOT/$path" && ! -l "$ROOT/$path" or die "file `$path' not found"; push @path, $path; } elsif (/^ .* \S .* $/) { die "unrecognized line `$_'";