[bug#60535] [PATCH] depend2: switch echo|sed to automatic vars

2023-01-04 Thread Nick Bowler
On 2023-01-04, Mike Frysinger wrote: > On 04 Jan 2023 21:10, Nick Bowler wrote: [...] >> maybe something like: >> >> % cat >Makefile <<'EOF' >> at_f = $(@F) >> foo/bar.o: >> a='$(@F:.o=)' b='$(at_f:.o=)'; test x"$$a.o" = x"$(@F)" || a=$$b;\ >>echo $$a >> EOF > > this is

[bug#60535] [PATCH] depend2: switch echo|sed to automatic vars

2023-01-04 Thread Mike Frysinger
On 04 Jan 2023 21:10, Nick Bowler wrote: > Except for one minor detail, $(@F) and $(@D) are highly portable. I > expect they were in the very first POSIX.2 specs as they predate the > earliest standards; I believe they first appeared in UNIX System V (ca. > 1983) and were later added to BSD in

[bug#60535] [PATCH] depend2: switch echo|sed to automatic vars

2023-01-04 Thread Nick Bowler
On 2023-01-03, Mike Frysinger wrote: > The echo|sed is used to split the dirname & filename so it can insert > $(DEPDIR) in the middle, and then chop the trailing object suffix. In > the generic case, %OBJ% is $@, so we can leverage the POSIX vars $(@D) > and $(@F) to do the pathname splitting

[bug#60541] [PATCH] check: drop unused trs_list variable

2023-01-04 Thread Mike Frysinger
On 04 Jan 2023 16:54, Karl Berry wrote: > When the code that used this variable was removed, the variable > itself was left behind. Clean that up now too. > * lib/am/check.am: Delete trs_list. > > I can't find when the code using trs_list was removed (no mention in any > ChangeLog),

[bug#60536] [PATCH] depend: trim spurious leading tab

2023-01-04 Thread Karl Berry
distclean: - %DISTRMS% +%DISTRMS% maintainer-clean: - %DISTRMS% +%DISTRMS% Sure, looks good. Please commit. Thanks Mike. -k

[bug#60541] [PATCH] check: drop unused trs_list variable

2023-01-04 Thread Karl Berry
When the code that used this variable was removed, the variable itself was left behind. Clean that up now too. * lib/am/check.am: Delete trs_list. I can't find when the code using trs_list was removed (no mention in any ChangeLog), but indeed, grepping the current sources, I don't