#13457: Various small fixes to sage-bdist
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: leif
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.4
Component: scripts | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by jhpalmieri):
If you feel like doing a little more:
{{{
#!diff
diff --git a/sage-bdist b/sage-bdist
--- a/sage-bdist
+++ b/sage-bdist
@@ -32,10 +32,8 @@ TARGET=sage-"$SAGE_VERSION"-`uname -m`-`
TARGET=`echo $TARGET | sed 's/ //g'` # Remove spaces
TMP="$CUR/tmp/$TARGET"
-mkdir -p "$CUR/tmp"
-
rm -rf "$TMP"
-mkdir "$TMP"
+mkdir -p "$TMP"
# copy sage root repo over:
cd "$SAGE_ROOT"
@@ -72,15 +70,14 @@ if [ -d devel/sage ]; then
ln -sf ../../../../devel/sage/build/sage .
fi
+cd "$SAGE_ROOT"
+
if [ -d devel/sagenb ]; then
echo "Copying Sage Notebook"
cp $CP_OPT -L devel/sagenb "$TMP/devel/sagenb-main"
ln -s sagenb-main "$TMP/devel/sagenb"
fi
-
-cd "$SAGE_ROOT"
-
if [ -d "$PKGDIR" ]; then
echo "Making empty spkg's"
cd "$PKGDIR"
}}}
The last two changes are actually crucial: you need a `cd "$SAGE_ROOT"`
before line 75 because otherwise, the working directory is wrong and the
`if [ -d devel/sagenb ]` block doesn't execute.
I'll try to keep looking at this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13457#comment:3>
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.