]> sourceware.org Git - glibc.git/commit
Make build-many-glibcs.py re-exec itself if changed by checkout.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 25 Nov 2016 00:58:22 +0000 (00:58 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 25 Nov 2016 00:58:22 +0000 (00:58 +0000)
commita1c9859baf0b9a062bee6218e5e3402577b2c84e
tree25783e955ba00ebdbe2c09c86468bf23bc7a60b6
parent457663a7cd48a675b44769368567713353011b5b
Make build-many-glibcs.py re-exec itself if changed by checkout.

Updating build-many-glibcs.py may result in changes to the default
versions of components, or to the set of components (if e.g. Hurd
support is added and that requires a new component).

It's desirable for the checkout process to leave a source tree that is
ready to use.  If the checkout updated the script itself, that means
it needs to be rerun to cause any new versions or components
referenced by the new script version to be properly checked out.  This
patch makes the script check if it was modified by the checkout
process, and re-exec itself (with the same arguments) if so.

* scripts/build-many-glibcs.py (Context.__init__): Save text of
script being executed.
(Context.get_script_text): New function.
(Context.exec_self): Likewise.
(Context.checkout): Re-exec script if changed by checkout process.
ChangeLog
scripts/build-many-glibcs.py
This page took 0.04741 seconds and 5 git commands to generate.