Page MenuHomeFreeBSD

locale: tools: Make finalize idempotent
ClosedPublic

Authored by jlduran on Nov 28 2025, 8:07 PM.
Tags
None
Referenced Files
F162704188: D53981.id167275.diff
Wed, Jul 15, 11:30 PM
F162652022: D53981.diff
Wed, Jul 15, 10:49 AM
F162648843: D53981.id167644.diff
Wed, Jul 15, 10:02 AM
F162643620: D53981.diff
Wed, Jul 15, 8:47 AM
F162633215: D53981.diff
Wed, Jul 15, 6:57 AM
F162633214: D53981.diff
Wed, Jul 15, 6:57 AM
Unknown Object (File)
Tue, Jul 14, 9:25 PM
Unknown Object (File)
Tue, Jul 14, 10:29 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