Page MenuHomeFreeBSD

Catch up with the new macros I just added. (and sort)
ClosedPublic

Authored by mat on May 14 2015, 10:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 13 2024, 5:17 AM
Unknown Object (File)
Feb 18 2024, 10:43 AM
Unknown Object (File)
Feb 8 2024, 3:40 PM
Unknown Object (File)
Feb 4 2024, 10:54 AM
Unknown Object (File)
Jan 22 2024, 6:08 PM
Unknown Object (File)
Dec 20 2023, 7:52 AM
Unknown Object (File)
Dec 8 2023, 1:33 PM
Unknown Object (File)
Dec 2 2023, 5:48 AM
Subscribers
None

Diff Detail

Repository
rD FreeBSD doc repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mat retitled this revision from to Catch up with the new macros I just added. (and sort).
mat updated this object.
mat edited the test plan for this revision. (Show Details)
mat added reviewers: wblock, gjb.

Looks okay, but shouldn't the whole list be alphabetical? CPAN is out of place, for a start.

In D2539#47084, @wblock wrote:

Looks okay, but shouldn't the whole list be alphabetical? CPAN is out of place, for a start.

I hoped no one would notice that ?

It's because CPAN is short for PERL_CPAN, as SF is short for SOURCEFORGE, but I replaced the long forms with the short form at one point, and forgot to reorder…

Maybe it's time to add a third column to the table for a note or reference that shows what that particular macro applies to or when it is used.

mat edited edge metadata.

Add a table with shortcuts.

This is nice. I was just thinking of a third column on the existing table, which could have the shorter version:

MacroAlternate NameAssumed subdirectory
PERL_CPANCPAN${PORTNAME:C/-.*//}
SAMBA${PORTNAME}

That might make it easier to find the shorter versions, because they are right with the long one. However, whichever way you want to do it is fine.

en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
1695 ↗(On Diff #5402)

s/shortcut/shortcuts/

1699 ↗(On Diff #5402)

s/Shortcut/Shortcuts/

In D2539#47272, @wblock wrote:

This is nice. I was just thinking of a third column on the existing table, which could have the shorter version:

MacroAlternate NameAssumed subdirectory
PERL_CPANCPAN${PORTNAME:C/-.*//}
SAMBA${PORTNAME}

That might make it easier to find the shorter versions, because they are right with the long one. However, whichever way you want to do it is fine.

I started with doing just that, but then, half the shortcuts are not magic macros, only short versions (like RUBYGEMS -> RG), and it did not feel right to put them in the magic section.

mat marked 2 inline comments as done.May 15 2015, 9:25 PM

Put the short versions in the magic table, and sort accordingly.

en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
1760 ↗(On Diff #6089)

That should probably be <quote> to imply it's not really magic, rather than emphasis.

1763 ↗(On Diff #6089)

"try to guess" sounds really unsure. "attempt to use" still admits that it might not work, but sounds a little better.

1770 ↗(On Diff #6089)

s/Will infer/infers/

(not capitalized, it's still part of the previous sentence.)

1772 ↗(On Diff #6089)

s/guess/inferred directory/
s/as follows//

mat marked 4 inline comments as done.Jun 26 2015, 11:27 AM
en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
1763 ↗(On Diff #6472)

Did you mean "safe"? Probably not needed at all.

"use" is redundant with the one earlier in the sentence. How about "...choose a subdirectory automatically."?

mat marked an inline comment as done.Jun 29 2015, 10:47 AM
mat added inline comments.
en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
1763 ↗(On Diff #6472)

Mmm, no, it was supposed to be "sane". Let's change it to what you propose.

mat marked an inline comment as done.

Update.

wblock edited edge metadata.

Looks good to me. Please check with igor -Rz and build-test before commit. (You know this, I'm just trying to get in the habit of saying it.)

This revision is now accepted and ready to land.Jun 29 2015, 2:59 PM
This revision was automatically updated to reflect the committed changes.