Page MenuHomeFreeBSD

depend-cleanup: Add examples for the common cases
ClosedPublic

Authored by emaste on Jan 20 2025, 2:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 12, 2:40 PM
Unknown Object (File)
Mon, Mar 3, 5:48 PM
Unknown Object (File)
Mon, Mar 3, 4:48 PM
Unknown Object (File)
Fri, Feb 28, 11:42 AM
Unknown Object (File)
Fri, Feb 21, 11:20 AM
Unknown Object (File)
Feb 17 2025, 12:37 AM
Unknown Object (File)
Feb 13 2025, 2:23 AM
Unknown Object (File)
Feb 12 2025, 1:28 AM
Subscribers
None

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

Prompted by D48519

tools/build/depend-cleanup.sh
99

oops, will undo of course

tools/build/depend-cleanup.sh
41–55

Generated to committed is really just a special case of moving from one directory to another, so perhaps mention moving first, then the additional step for generated files of removing the stale file.

tools/build/depend-cleanup.sh
88

This could be clearer. It is not obvious how that regex fixes the detection of the move.

Maybe we could add a variant of clean_dep that automatically builds the correct regex from the full path of the old source file.

tools/build/depend-cleanup.sh
88

It is enough of the old location, with the /'s replaced with .. We could escape them if it makes things clearer.

It just needs to be a regular expression that matches the old location, doesn't match the new location, and doesn't match any dependency shared between them.

This revision is now accepted and ready to land.Wed, Mar 12, 2:29 PM
This revision was automatically updated to reflect the committed changes.