Ticket #10303: trac_10303-root-repo.patch

File trac_10303-root-repo.patch, 1.1 KB (added by jhpalmieri, 10 years ago)

root repo

  • spkg/install

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1301350048 25200
    # Node ID 8f614b4f84db84530842b5a1fc70fe016c6863c3
    # Parent  683ac85017eb010df433eb526e36c36dd745ef0a
    #10303: call sage-check-64 in spkg/install
    
    diff -r 683ac85017eb -r 8f614b4f84db spkg/install
    a b  
    8080export PATH SAGE_ROOT SAGE_LOCAL SAGE_LOGS PYTHONPATH
    8181
    8282if [ ! -f "$SAGE_LOCAL/bin/sage-spkg" ]; then
    83     if [ ! -d "$SAGE_LOCAL" ]; then
    84         mkdir "$SAGE_LOCAL"
    85     fi
    86     if [ ! -d "$SAGE_LOCAL/bin" ]; then
    87         mkdir "$SAGE_LOCAL/bin"
    88     fi
     83    mkdir -p "$SAGE_LOCAL/bin"
    8984    cp base/sage-* base/testcc.sh base/testcxx.sh "$SAGE_LOCAL/bin/"
    9085fi
    9186
    92 if [ ! -d "$SAGE_LOGS" ]; then
    93     mkdir -p "$SAGE_LOGS"
     87. "$SAGE_LOCAL/bin/sage-check-64"
     88if [ $? -ne 0 ]; then
     89    exit 1
    9490fi
    9591
     92mkdir -p "$SAGE_LOGS"
     93
    9694###############################################################################
    9795# Make upgrading work: If this script is called from sage-upgrade,
    9896# either sage-upgrade has set SAGE_UPGRADING to "yes",