Mercurial > octave
view etc/GNULIB.UPDATE @ 27784:873ef98668d1
Add instructions for importing changes from the gnulib git repository.
* etc/GNULIB.UPDATE: Add instructions for importing upstream changes from the
gnulib git repository.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 08 Dec 2019 14:42:04 +0100 |
parents | 566adf9d823b |
children | e3ef089c5529 |
line wrap: on
line source
## Instructions for updating gnulib on development branch ## Change directory to the local Octave repositoy and clone the gnulib git ## repository: git clone git://git.savannah.gnu.org/gnulib.git gnulib-git ## Convert to hg (might take some time): hg --config extensions.convert= convert ./gnulib-git ./gnulib-hg ## Change directory to the gnulib sub-repo in Octave and execute the following ## commands: cd ./gnulib hg pull default hg update hg log -rtip --template "{node}\n" ## Take note of the SHA-1 hash (LAST_OLD_HASH) of that revision. ## Locate the first new revision in the converted repository and replace it in ## the following command: cd ../gnulib-hg hg log -r20111 --template "{node}\n" ## Take note of the SHA-1 hash (FIRST_NEW_HASH) of that revision. ## Change to the main directory of the local Octave repository and execute the ## following command replacing the hashes with the information just gathered: cd .. echo FIRST_NEW_HASH LAST_OLD_HASH > splicemap ## Execute the following command (having replaced FIRST_NEW_HASH): hg --config extensions.convert= convert ./gnulib-hg ./gnulib --splicemap ./splicemap --config convert.hg.startrev=FIRST_NEW_HASH ## In the Octave repository do the following: cd gnulib hg update cd .. hg commit -m "maint: update gnulib subrepo." hg push default -r .