pjs/tools/build-environment/win32/packageit-msys.sh

31 строка
916 B
Bash

set -e
# This script expects these to be absolute paths in win32 format
if test -z "$MOZ_SRCDIR"; then
echo "This script should be run from packageit.py (MOZ_SRCDIR missing)."
exit 1
fi
if test -z "$MOZ_STAGEDIR"; then
echo "This script should be run from packageit.py (MOZ_STAGEDIR missing)."
exit 1
fi
MSYS_SRCDIR=$(cd "$MOZ_SRCDIR" && pwd)
MSYS_STAGEDIR=$(cd "$MOZ_STAGEDIR" && pwd)
tar -xzf "${MSYS_SRCDIR}/MIME-Base64-3.07.tar.gz" -C "${MSYS_STAGEDIR}"
pushd "${MSYS_STAGEDIR}/MIME-Base64-3.07"
perl Makefile.pl
make LD="gcc -shared"
make test
make install PREFIX="${MSYS_STAGEDIR}/mozilla-build/msys"
popd
# In order for this to actually work, we now need to rebase
# the DLL. Since I can't figure out how to rebase just one
# DLL to avoid conflicts with a set of others, we just
# rebase them all!
find "${MSYS_STAGEDIR}/mozilla-build/lib" -name "*.dll" | \
xargs rebase -d -b 60000000