Closed Bug 739601 Opened 13 years ago Closed 10 years ago

Replace config/milestone.pl

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla37

People

(Reporter: joey, Assigned: Ms2ger)

References

Details

Attachments

(1 file)

Port config/milestone.pl to python and write unit a unit test for the script. - the .pl script will also generate an uninit var warning when called w/o --topsrcdir. toolkit/xre/Makefile.in - this makefile is setup to read milestone.txt in different ways {stale code?}. Calling milestone.pl and cat config/milestone.txt. Cat should be replaced by a call to the script so whitespace and embedded newlines cannot affect extracting a value from the file.
I'm not sure why we read the file in two ways, but it may be that certain locations actually want the full version number there. milestone.pl simply strips off the trailing bits (like "a1"), which seems like hugely overkill at this point. Perhaps it did more in an ancient time, I can't remember.
It probably made sense when we had versions like x.ya1pre.
Summary: config/milestone.pl → Replace config/milestone.pl
Assignee: nobody → Ms2ger
Comment on attachment 8542902 [details] [diff] [review] Rewrite (the used parts of) config/milestone.pl in python Review of attachment 8542902 [details] [diff] [review]: ----------------------------------------------------------------- Most excellent.
Attachment #8542902 - Flags: review?(gps) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: