| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# Run on cygwin under $(topdir) to create a list of dlls to be rebased. |
| 6 |
# The user is expected to run: |
| 7 |
# $ /bin/rebaseall -v -T dlls.txt |
| 8 |
# After finishing 'make'. (Even make check won't run without rebase). |
| 9 |
|
| 10 |
needrebase=no |
| 11 |
if [ ! -f dlls.txt ]; then |
| 12 |
needrebase=yes |
| 13 |
else |
| 14 |
for dll in `cat dlls.txt`; do |
| 15 |
if [ -e $dll -a $dll -nt dlls.txt ]; then |
| 16 |
needrebase=yes |
| 17 |
fi |
| 18 |
done |
| 19 |
fi |
| 20 |
|
| 21 |
if [ $needrebase = no ]; then exit 0; fi |
| 22 |
|
| 23 |
find . -name '*.dll' -print > dlls.txt |
| 24 |
|
| 25 |
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |
| 26 |
echo '!! I M P O R T A N T !!' |
| 27 |
echo '!! !!' |
| 28 |
echo '!! You need to run "rebaseall" with the following command line in this !!' |
| 29 |
echo '!! directory, before running "make install" or even "make check". !!' |
| 30 |
echo '!! !!' |
| 31 |
echo '!! $ /bin/rebaseall -v -T dlls.txt !!' |
| 32 |
echo '!! !!' |
| 33 |
echo '!! It must be run without running other Cygwin processes but ash. !!' |
| 34 |
echo '!! (You must not even run bash. Close all cygwin windows, open Windows !!' |
| 35 |
echo '!! command prompt, run \cygwin\bin\ash (the actual path may differ !!' |
| 36 |
echo '!! depending on how you install cygwin), cd to your build directory, !!' |
| 37 |
echo '!! then run the above command.) !!' |
| 38 |
echo '!! See http://www.tishler.net/jason/software/rebase/rebase-2.4.2.README !!' |
| 39 |
echo '!! for more details. !!' |
| 40 |
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |