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, May 13, 10:53 PM
Unknown Object (File)
Mon, May 6, 5:24 PM
Unknown Object (File)
Sun, Apr 28, 5:08 PM
Unknown Object (File)
Thu, Apr 25, 8:22 PM
Unknown Object (File)
Feb 23 2024, 11:14 PM
Unknown Object (File)
Jan 21 2024, 9:55 PM
Unknown Object (File)
Dec 24 2023, 3:34 PM
Unknown Object (File)
Dec 23 2023, 3:22 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.