git: mk: Improve handling of MLINKS

Aaron LI aly at
Sun Mar 5 01:35:40 PST 2023

commit 97a6cfada2f09cbd780b2cf4b39a27bd8c9438cf
Author: Aaron LI <aly at>
Date:   Sat Mar 4 18:41:12 2023 +0800

    mk: Improve handling of MLINKS
    - Use '.for' multi-variable loop to simplify the handling of MLINKS, and
      thus make the code cleaner and more readable.
    - Merge the MLINKS installation of man pages and catman pages, and thus
      remove duplicate code.
    - This change also gives one benefit: if MLINKS has odd-number items,
      make will just fail the parsing and refuse to execute.  This can
      prevent messing up the man page hardlinks.
    As suggested by swildner, performed a 'maninstall' test and the result
    was identical.
    Obtained-from: FreeBSD (revisions 284685 and 295229)

Summary of changes:
 share/mk/ | 48 +++++++++++++++---------------------------------
 1 file changed, 15 insertions(+), 33 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list