Page MenuHomeFreeBSD

locale: tools: Make finalize idempotent
ClosedPublic

Authored by jlduran on Nov 28 2025, 8:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 5:20 AM
Unknown Object (File)
Mon, Apr 27, 2:58 PM
Unknown Object (File)
Mon, Apr 27, 8:02 AM
Unknown Object (File)
Mon, Apr 27, 4:22 AM
Unknown Object (File)
Sat, Apr 25, 3:39 AM
Unknown Object (File)
Fri, Apr 17, 8:59 AM
Unknown Object (File)
Thu, Apr 16, 7:32 PM
Unknown Object (File)
Wed, Apr 1, 5:48 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 Skipped
Unit
Tests Skipped