Ticket #13899: 13899_TAB_sage_root.patch

File 13899_TAB_sage_root.patch, 1.8 KB (added by jdemeyer, 7 years ago)
  • spkg/bin/sage

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1357124430 -3600
    # Node ID 96d6c80fccfa38a183dbd606ccbe497eb4cc1220
    # Parent  e3921d99eb3998ba3ba60fc17460fdfc16636f4d
    Don't use TAB characters for indentation
    
    diff --git a/spkg/bin/sage b/spkg/bin/sage
    a b  
    737737fi
    738738
    739739if [ "$1" = '-ba' ]; then
    740    shift
    741    echo " *** WARNING ***"
    742    echo " You are about to rebuild the entire Sage library."
    743    echo " This will take a significant amount of time."
    744    echo " (Use -ba-force instead of -ba to skip this prompt.)"
    745    echo -n " Do you want to proceed? [y/n] "
    746    read CHOICE
    747    while [ "$CHOICE" != "y" -a "$CHOICE" != "n" ]; do
    748            echo -n " Choose one of y, n: "
    749            read CHOICE
    750    done
    751    if [ $CHOICE = 'n' ]; then
    752            exit 0
    753    fi
    754    build_sage -b "$@"
    755    exit $?
     740    shift
     741    echo " *** WARNING ***"
     742    echo " You are about to rebuild the entire Sage library."
     743    echo " This will take a significant amount of time."
     744    echo " (Use -ba-force instead of -ba to skip this prompt.)"
     745    echo -n " Do you want to proceed? [y/n] "
     746    read CHOICE
     747    while [ "$CHOICE" != "y" -a "$CHOICE" != "n" ]; do
     748        echo -n " Choose one of y, n: "
     749        read CHOICE
     750    done
     751    if [ $CHOICE = 'n' ]; then
     752        exit 0
     753    fi
     754    build_sage -b "$@"
     755    exit $?
    756756fi
    757757
    758758if [ "$1" = '-ba-force' ]; then
  • spkg/bin/sage-env

    diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
    a b  
    579579    # For backwards compatibility, we use the value of SAGE_DOC_JSMATH
    580580    # if it is set.
    581581    if [ -n "$SAGE_DOC_JSMATH" ]; then
    582         SAGE_DOC_MATHJAX="$SAGE_DOC_JSMATH"
     582        SAGE_DOC_MATHJAX="$SAGE_DOC_JSMATH"
    583583    else
    584         SAGE_DOC_MATHJAX="True"
     584        SAGE_DOC_MATHJAX="True"
    585585    fi
    586586    export SAGE_DOC_MATHJAX
    587587fi