Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/src/bin/sage-rebaseall.bat
8817 views
@echo off
rem Authors:
rem * Dmitrii Pasechnik <[email protected]>
rem * Jean-Pierre Flori <[email protected]>
rem
rem Rebase all dlls in the SAGE_ROOT directory (and its subdirectories),
rem as well as the ones already stored in the system database,
rem and update the database.
rem This system-wide database is located in '/etc/rebase.db.i386' and
rem includes the Cygwin system dlls.
rem
rem Invoke this script from a Windows command prompt,
rem after adjusting SAGE_ROOT to the Windows location of the Sage directory,
rem and, if Cygwin is installed in a non-standard location,
rem adjusting CYGWIN_ROOT.
rem Ensure that no other Cygwin processes are currently running.
rem Note that you need write access to the system-wide rebase database
rem (which usually means admin rights).

set CYGWIN_ROOT=C:\cygwin\
set SAGE_ROOT=C:\cygwin\usr\local\sage\

rem Make sure dash can be called from MSDOS prompt:
path %CYGWIN_ROOT%\bin;%path%
rem Suppress warning about MSDOS-style path:
set CYGWIN=%CYGWIN% nodosfilewarning
rem Call the dash script to do the real work:
cd %SAGE_ROOT%
dash .\local\bin\sage-rebaseall.sh