#! /bin/dash12# Authors:3# * Gary Zablackis <[email protected]>4# * Dmitrii Pasechnik <[email protected]>5# * Jean-Pierre Flori <[email protected]>6#7# Rebase all dlls in the SAGE_ROOT directory (and its subdirectories)8# as well as the ones already stored in the system database,9# and update the database.10# This system-wide database is located in '/etc/rebase.db.i386' and11# includes the Cygwin system dlls.12#13# Invoke this script from a dash shell after going to the SAGE_ROOT directory.14# Ensure that no other Cygwin processes are currently running.15# Note that you need write access to the system-wide rebase database16# (which usually means admin rights).1718echo "Getting list of dlls. This may take a while..."19/bin/find -name "*.dll" -o -name "*.so" > /tmp/sage-dlls.lst20echo "Now rebasing..."21/bin/rebaseall -T /tmp/sage-dlls.lst222324