#11926: "make build" should run Sage once
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: GeorgSWeber
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.3
Component: build | Keywords: Makefile build
Work_issues: | Upstream: N/A
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by leif):
Replying to [comment:24 jdemeyer]:
> Replying to [comment:18 leif]:
> > Also, upon upgrading the message is useless (at least in the first
place), as a second attempt to upgrade / build Sage is made.
> What do you mean by "a second attempt to upgrade / build Sage is made"?
{{{
#!sh
if [ "$1" = '-upgrade' -o "$1" = "--upgrade" ]; then
# People often move the Sage install right before doing the upgrade,
so it's
# important to fix any path hardcoding issues first, or certain
library
# links will fail.
"$SAGE_ROOT/local/bin/"sage-location
# Do it twice since when installing sage-scripts and a running
# script changes, it gets confused and exits with an error.
# Running again (with the script replaced) then fixes the problem.
# Run from a temporary copy of sage-sage
shift
sage-upgrade "$@"
if [ $? = 2 ]; then # this exit codes means the user elected not to
do the upgrade at all.
exit $?
fi
echo "Double checking that all packages have been installed."
sage-upgrade "$@"
exit $?
fi
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11926#comment:27>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.