Page MenuHomeFreeBSD

locale: tools: Make finalize idempotent
ClosedPublic

Authored by jlduran on Nov 28 2025, 8:07 PM.
Tags
None
Referenced Files
F163491255: D53981.id167257.diff
Thu, Jul 23, 6:10 PM
Unknown Object (File)
Wed, Jul 22, 10:30 AM
Unknown Object (File)
Tue, Jul 21, 10:26 AM
Unknown Object (File)
Tue, Jul 21, 2:36 AM
Unknown Object (File)
Mon, Jul 20, 4:08 PM
Unknown Object (File)
Mon, Jul 20, 4:08 PM
Unknown Object (File)
Mon, Jul 20, 9:06 AM
Unknown Object (File)
Sun, Jul 19, 5:41 AM
Subscribers

Details

Summary

The finalize script renames source files with 3 components in their name
into names with two components with an @modifier, in the process.

Running the script for a second time without cleaning will strip the
@modifier from the files, producing invalid Makefiles and unusable
locales.

Prevent this by adding a guard at the beginning of the script.

Also, use a sub-shell for directory changes to avoid working directory
issues.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable