Skip to content
Henry Schreiner edited this page Jul 14, 2020 · 4 revisions

This is an exact copy of the original Minuit2 sources from ROOT. Given there are no changes, the instructions for maintainers are in a GitHub wiki.

Warning: define MATHCORE_STANDALONE for now to build; patch submitted to ROOT.

How to create a new release, for maintainers:

I'm assuming that ROOT and Minuit2 are side by side in the instructions below, though they don't need to be. I'm translating my commands into bash from fish, so hopefully there are no errors; feel free to use common sense when copying commands.

minuit2_dir=$PWD/minuit2
root_dir=$PWD/root
versiondash=v6-18-04
versiondot=6.18.4

First, remove the current files (actually only needed if a Minuit2 file was deleted in the update).

cd $minuit2_dir
rm -r *

Now, make a tar.gz and extract it:

cd $root_dir/math/minuit2
git checkout $versiondash
cmake -S . -B build-standalone -Dminuit2_standalone=ON
cmake --build build-standalone --target package_source
tar -xzf build-standalone/Minuit2-$versiondot-Source.tar.gz -C $minuit2_dir --strip 1
cd $minuit2_dir

Check to see what has changed, commit and tag if you like it:

git status
git add -u
git commit -m "Update to $versiondot"
git tag $versionsdash
git push
git push --tags

(There may be a .ci folder there than I ignore)

Other resources

Clone this wiki locally