# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1324053497 3600
# Node ID 010217d55b6dce908a0b4e9ea7acd863e16ad042
# Parent bc1baf5c7d7b4f31e8c8883609857b6e20132853
Move SAGE_ROOT/ipython to extcode: copy data/extcode/dotsage into $DOT_SAGE
diff git a/sagesage b/sagesage
a

b


256  256  LOGOPT="" 
257  257  
258  258  sage_setup() { 
 259  cd "$SAGE_LOCAL/bin" 
 260  
259  261  # Display the startup banner 
260  262  if [ "$SAGE_BANNER" != "no" ]; then 
261   cat "$SAGE_LOCAL/bin/sagebanner" 
 263  cat sagebanner 
262  264  fi 
263  265  
264  266  # Check to see if the whole Sage install tree has moved. 
265  267  # If so, change various hardcoded paths. 
266   "$SAGE_ROOT/local/bin/"sagelocation 
267   if [ $? ne 0 ]; then 
268   exit 1 
269   fi 
 268  ./sagelocation  exit 
270  269  
271   cd "$SAGE_ROOT/local/bin" 
272  270  IPYTHONDIR="$DOT_SAGE/ipython" && export IPYTHONDIR 
273  271  IPYTHONRC="ipythonrc" && export IPYTHONRC 
274  272  if [ ! d "$IPYTHONDIR" ]; then 
275  273  mkdir p "$DOT_SAGE" 
276   cp r "$SAGE_ROOT/ipython" "$DOT_SAGE/" 
 274  cp pR "$SAGE_ROOT"/data/extcode/dotsage/* "$DOT_SAGE"  exit 
277  275  fi 
278  276  sagecleaner &>/dev/null & 
279  277  } 