Page MenuHomeFreeBSD

Stop using a temporary file for genoffset.sh
ClosedPublic

Authored by jtl on Oct 30 2023, 5:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 6:39 PM
Unknown Object (File)
Sun, Nov 3, 11:11 PM
Unknown Object (File)
Mon, Oct 21, 5:12 PM
Unknown Object (File)
Mon, Oct 21, 4:44 PM
Unknown Object (File)
Thu, Oct 17, 11:44 AM
Unknown Object (File)
Wed, Oct 16, 10:33 PM
Unknown Object (File)
Oct 14 2024, 3:05 PM
Unknown Object (File)
Oct 12 2024, 12:28 PM
Subscribers

Details

Summary

Stop using a temporary file for genoffset.sh.

Instead, use a here document for the input. This allows us to run the while loop in the main script so we can build the list of asserts in a shell variable. We then print out the list of asserts at the end of the loop.

Test Plan

During a build, this produces the same results as the old version.

Diff Detail

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

Event Timeline

jtl requested review of this revision.Oct 30 2023, 5:56 PM
jtl created this revision.

I might also note in the commit message you used a here document with the shell output expanded in the commit message... it is a bit of a surprising change based on the commit message.

This revision is now accepted and ready to land.Oct 31 2023, 1:05 AM
In D42407#967685, @imp wrote:

I might also note in the commit message you used a here document with the shell output expanded in the commit message... it is a bit of a surprising change based on the commit message.

I took a stab at updating the commit message. Let me know if it looks better.

Update improved things.. Thanks!

This revision was automatically updated to reflect the committed changes.