3 # This script aims to do averything necessary to automate the packaging
4 # of LyX/Win ready for an Windows Installer to be built.
6 # It copies these files into the appropriate places in the LyX tree.
13 # It strips the executables.
15 # It adds formats and converters to the Resources/configure script to
16 # ensure that the generated .dvi file is usable.
18 # It removes all stuff generated by running configure:
25 # The installee should regenerate them by running configure on his machine.
27 QT_DLL="$HOME/Qt/3x-msys/bin/qt-mt3.dll"
28 ICONV_DLL="/j/MinGW/bin/iconv.dll"
29 MINGW_DLL="/j/MinGW/bin/mingwm10.dll"
31 DT2DV="$DTL_DIR/dt2dv.exe"
32 DV2DT="$DTL_DIR/dv2dt.exe"
34 LYX_INSTALL_DIR="../../../build/installprefix"
36 # Change this to 'mv -f' when you are confident that
37 # the various sed scripts are working correctly.
42 # Install the necessary .dlls.
43 for file in "${QT_DLL}" "${ICONV_DLL}" "${MINGW_DLL}" "${DT2DV}" "${DV2DT}"
45 cp "${file}" "$LYX_INSTALL_DIR"/bin/. || {
46 echo "Failed to copy ${file} to the LyX package" >&2
51 # Strip the executables
53 cd "${LYX_INSTALL_DIR}/bin"
60 # Strip the executables
62 cd "${LYX_INSTALL_DIR}/Resources"
64 for file in doc/LaTeXConfig.lyx lyxrc.defaults packages.lst textclass.lst
72 windows_packaging || exit 1