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)
Mon, Nov 11, 3:47 AM
Unknown Object (File)
Sun, Nov 10, 10:22 AM
Unknown Object (File)
Sat, Nov 9, 10:46 AM
Unknown Object (File)
Sat, Nov 9, 7:11 AM
Unknown Object (File)
Sat, Nov 9, 6:23 AM
Unknown Object (File)
Sat, Nov 9, 6:04 AM
Unknown Object (File)
Fri, Nov 8, 9:56 AM
Unknown Object (File)
Fri, Nov 8, 9:54 AM
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.