This is a frequently requested feature. We should start with some little script that does this, and build on it. I tried all the following, and ran the test suite and it worked fine.
- rm SAGE_ROOT/local/lib/*.a
- rm SAGE_ROOT/devel/sage/build/lib.*
- rm SAGE_ROOT/devel/sage/build/temp.*
- strip SAGE_ROOT/local/bin/Singular-* SAGE_ROOT/local/bin/gfan # gfan is a huge win.
- jsmath image fonts are in MoinMoin and are HUGE. Just delete everything related to moinmoin...
- strip SAGE_ROOT/local/lib/*.so
- rm -rf SAGE_ROOT/local/python/site-package/MoinMoin
- rm all files in SAGE_ROOT/devel/sage/sage/ that begin "* Generated by Cython" (I didn't do that)
The patches below actually provide a new make target, "micro_release", rather than adding a new option to sage.
Apply attachment: trac_10801-root_repo.patch to the Sage root repository.
Apply attachment: trac_10801-local_bin_repo.patch to the Sage scripts repository.
CC: @jasongrout @kcrisman
Component: packages: standard
Keywords: sd32
Author: William Stein, Keshav Kini
Reviewer: Benjamin Jones, Keshav Kini
Merged: sage-4.7.2.alpha3
Issue created by migration from https://trac.sagemath.org/ticket/10801