Ticket #10637: trac_10637-root.patch

File trac_10637-root.patch, 1.1 KB (added by kcrisman, 8 years ago)

Apply to root repository

  • spkg/bin/sage

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1340239004 14400
    # Node ID 71e57fb52edc947118d43d98910cb6f4686aab12
    # Parent  202c604d313aa1874a59a1f61e3f4876dc4a4d80
    Trac 10637 - implement sws2rst in spkg/bin/sage
    
    Rebased patch of Pablo Angulo
    
    diff --git a/spkg/bin/sage b/spkg/bin/sage
    a b  
    193193    echo "                         reStructuredText source."
    194194    echo "  -rst2sws [...]      -- Generates Sage worksheet (.sws) from standalone"
    195195    echo "                         reStructuredText source."
     196    echo "  -sws2rst <sws doc>  -- Generates a reStructuredText source file from"
     197    echo "                         a Sage worksheet (.sws) document."
    196198
    197199    echo
    198200    ####  1.......................26..................................................78
     
    388390    exec "$SAGE_LOCAL/bin/sqlite3" "$@"
    389391fi
    390392
     393if [ "$1" = '-sws2rst' -o "$1" = '--sws2rst' ]; then
     394    shift
     395    sage-sws2rst "$@"
     396fi   
     397
    391398if [ "$1" = '-twistd' -o "$1" = '--twistd' ]; then
    392399    shift
    393400    exec "$SAGE_LOCAL/bin/twistd" "$@"