The only code changes are: 1. the marker used to inform the build system of a modification of nsprpub/config/prdepend.h 2. the removal of nsprpub/TAG-INFO as it is redundant with info in nsprpub/moz.yaml Differential Revision: https://phabricator.services.mozilla.com/D308194
19 lines
623 B
Python
Executable File
19 lines
623 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# This script append the release version to prdepend.h, ensuring a rebuild of
|
|
# firefox whenever we do an update.
|
|
|
|
with open("nsprpub/moz.yaml") as fd:
|
|
for line in fd:
|
|
if line.lstrip().startswith("release:"):
|
|
break
|
|
else:
|
|
raise ValueError("Failed to identify release tag in moz.yaml")
|
|
|
|
with open("nsprpub/config/prdepend.h", "a") as fd:
|
|
fd.write(f"// {line}")
|