Ticket #14031: trac_14031-scripts.patch

File trac_14031-scripts.patch, 4.8 KB (added by jpflori, 7 years ago)

Updated scripts, using rebaseall or rebase -O.

  • new file sage-rebase.bat

    # HG changeset patch
    # User Jean-Pierre Flori <jean-pierre.flor@ssi.gouv.fr>
    # Date 1366106029 -7200
    # Node ID bc30aaecf0cde1241ae4b01c26e5ac557a5a020b
    # Parent  bbdf08b61725a75e443673ae38fed349430718f8
    #14031: Provide proper Cygwin rebasing scripts
    
    diff --git a/sage-rebase.bat b/sage-rebase.bat
    new file mode 100755
    - +  
     1@echo off
     2rem Author:
     3rem * Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
     4rem
     5rem Rebase all dlls in the SAGE_ROOT directory (and its subdirectories),
     6rem but do not touch the ones already stored in the system database,
     7rem and do not update it.
     8rem Note that subsequent calls to 'rebaseall' will not update the Sage dlls.
     9rem
     10rem Invoke this script from a Windows command prompt,
     11rem after adjusting SAGE_ROOT to the Windows location of the Sage directory,
     12rem and, if Cygwin is installed in a non-standard location,
     13rem adjusting CYGWIN_ROOT.
     14
     15set CYGWIN_ROOT=C:\cygwin\
     16set SAGE_ROOT=C:\cygwin\usr\local\sage\
     17
     18rem Make sure bash can be called from MSDOS prompt:
     19path %CYGWIN_ROOT%\bin;%path%
     20rem Suppress warning about MSDOS-style path:
     21set CYGWIN=%CYGWIN% nodosfilewarning
     22rem Call the bash script to do the real work:
     23cd %SAGE_ROOT%
     24bash .\local\bin\sage-rebase.sh
  • new file sage-rebase.sh

    diff --git a/sage-rebase.sh b/sage-rebase.sh
    new file mode 100755
    - +  
     1#! /bin/bash
     2
     3# Author:
     4# * Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
     5#
     6# Rebase all dlls in the SAGE_ROOT directory (and its subdirectories),
     7# but do not touch the ones already stored in the system database,
     8# and do not update it.
     9# Note that subsequent calls to 'rebaseall' will not update the Sage dlls.
     10#
     11# Invoke this script from a shell after going to the SAGE_ROOT directory.
     12
     13echo "Getting list of dlls. This may take a while..."
     14/bin/find -name "*.dll" -o -name "*.so" > /tmp/sage-dlls.lst
     15echo "Now rebasing..."
     16/bin/rebase -O -T /tmp/sage-dlls.lst
  • deleted file sage-rebase_sage.sh

    diff --git a/sage-rebase_sage.sh b/sage-rebase_sage.sh
    deleted file mode 100755
    + -  
    1 #!/usr/bin/env bash
    2 
    3 # Author: Gary Zablackis <gzabl@yahoo.com>
    4 
    5 # Rebase all dlls in the current sage directory (and subdirectories)
    6 # This is needed when installing SAGE binaries under Windows.
    7 
    8 # It is currently not yet deployed, since I don't know when/how/what
    9 # to do with it.  -- William Stein
    10 
    11 echo "Getting list of dlls...This may take awhile..."
    12 
    13 /bin/find -name *.dll > Sage-dlls.lst
    14 
    15 rebaseall -T Sage-dlls.lst
  • new file sage-rebaseall.bat

    diff --git a/sage-rebaseall.bat b/sage-rebaseall.bat
    new file mode 100755
    - +  
     1@echo off
     2rem Authors:
     3rem * Dmitrii Pasechnik <dimpase@gmail.com>
     4rem * Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
     5rem
     6rem Rebase all dlls in the SAGE_ROOT directory (and its subdirectories),
     7rem as well as the ones already stored in the system database,
     8rem and update the database.
     9rem This system-wide database is located in '/etc/rebase.db.i386' and
     10rem includes the Cygwin system dlls.
     11rem
     12rem Invoke this script from a Windows command prompt,
     13rem after adjusting SAGE_ROOT to the Windows location of the Sage directory,
     14rem and, if Cygwin is installed in a non-standard location,
     15rem adjusting CYGWIN_ROOT.
     16rem Ensure that no other Cygwin processes are currently running.
     17rem Note that you need write access to the system-wide rebase database
     18rem (which usually means admin rights).
     19
     20set CYGWIN_ROOT=C:\cygwin\
     21set SAGE_ROOT=C:\cygwin\usr\local\sage\
     22
     23rem Make sure dash can be called from MSDOS prompt:
     24path %CYGWIN_ROOT%\bin;%path%
     25rem Suppress warning about MSDOS-style path:
     26set CYGWIN=%CYGWIN% nodosfilewarning
     27rem Call the dash script to do the real work:
     28cd %SAGE_ROOT%
     29dash .\local\bin\sage-rebaseall.sh
  • new file sage-rebaseall.sh

    diff --git a/sage-rebaseall.sh b/sage-rebaseall.sh
    new file mode 100755
    - +  
     1#! /bin/dash
     2
     3# Authors:
     4# * Gary Zablackis <gzabl@yahoo.com>
     5# * Dmitrii Pasechnik <dimpase@gmail.com>
     6# * Jean-Pierre Flori <jean-pierre.flori@ssi.gouv.fr>
     7#
     8# Rebase all dlls in the SAGE_ROOT directory (and its subdirectories)
     9# as well as the ones already stored in the system database,
     10# and update the database.
     11# This system-wide database is located in '/etc/rebase.db.i386' and
     12# includes the Cygwin system dlls.
     13#
     14# Invoke this script from a dash shell after going to the SAGE_ROOT directory.
     15# Ensure that no other Cygwin processes are currently running.
     16# Note that you need write access to the system-wide rebase database
     17# (which usually means admin rights).
     18
     19echo "Getting list of dlls. This may take a while..."
     20/bin/find -name "*.dll" -o -name "*.so" > /tmp/sage-dlls.lst
     21echo "Now rebasing..."
     22/bin/rebaseall -T /tmp/sage-dlls.lst