Files
serge-sans-paille 66360a1e96 Bug 2049589 - Move nsprpub vendoring to moz.yaml r=sylvestre,kaie UPGRADE_NSPR_RELEASE DONTBUILD
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
2026-06-29 15:39:08 +00:00

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}")