From b72724a9b683eb5adc1e18bfe47ccc15fe5fc997 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sun, 17 Jul 2005 21:31:02 +0000 Subject: [PATCH] Sync 13x and 14x git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10297 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/Win32/packaging/README | 3 +- development/Win32/packaging/build_lyxwin.sh | 32 +++++++++---------- development/Win32/packaging/package_lyxwin.sh | 2 ++ 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/development/Win32/packaging/README b/development/Win32/packaging/README index 03dec127b7..12f4aaeef8 100644 --- a/development/Win32/packaging/README +++ b/development/Win32/packaging/README @@ -34,7 +34,8 @@ the process: * Remove all stuff generated by running configure. It makes sense on your machine only, not for whoever is installing LyX. Specifically - doc/LaTeXConfig.lyx, lyxrc.defaults, packages.lst and textclass.lst + xfonts/fonts.dir, xfonts/fonts.scale, doc/LaTeXConfig.lyx, + lyxrc.defaults, packages.lst and textclass.lst should all be removed. diff --git a/development/Win32/packaging/build_lyxwin.sh b/development/Win32/packaging/build_lyxwin.sh index 798c40a983..4db8740da6 100644 --- a/development/Win32/packaging/build_lyxwin.sh +++ b/development/Win32/packaging/build_lyxwin.sh @@ -36,17 +36,16 @@ # It compiles the static version of the Aspell libraries because no # .dll version exists. -HOME="/home/Angus" - -# You may need to change these three variables. +# You may need to change these four variables. +MINGW_DIR="/j/MinGW" QT_DIR="${HOME}"/qt3 ASPELL_DIR="${HOME}"/aspell-0.50.5 # A space-separated string of directories # ASPELL_DICT_DIRS="${HOME}/aspell-en-0.50-2 ${HOME}/aspell-de-0.50-2 " ASPELL_DICT_DIRS="${HOME}/aspell-en-0.50-2" -LYX_DIR="${HOME}"/lyx/13x # Everything from here on down should be OK "as is". +LYX_DIR="../../.." PACKAGING_DIR="$LYX_DIR/development/Win32/packaging" DTL_DIR="$PACKAGING_DIR/dtl" CLEAN_DVI_DIR="$PACKAGING_DIR" @@ -58,12 +57,12 @@ LYX_INSTALL_DIR=installprefix # These are all installed in the final LyX package QT_DLL="${QT_DIR}/bin/qt-mt3.dll" -LIBICONV_DLL="/j/MinGW/bin/libiconv-2.dll" -MINGW_DLL="/j/MinGW/bin/mingwm10.dll" +LIBICONV_DLL="${MINGW_DIR}/bin/libiconv-2.dll" +MINGW_DLL="${MINGW_DIR}/bin/mingwm10.dll" -DT2DV="$DTL_DIR/dt2dv.exe" -DV2DT="$DTL_DIR/dv2dt.exe" -CLEAN_DVI_PY="$CLEAN_DVI_DIR/clean_dvi.py" +DT2DV="${DTL_DIR}/dt2dv.exe" +DV2DT="${DTL_DIR}/dv2dt.exe" +CLEAN_DVI_PY="${CLEAN_DVI_DIR}/clean_dvi.py" # Change this to 'mv -f' when you are confident that # the various sed scripts are working correctly. @@ -242,12 +241,13 @@ build_lyx() # Check the line endings of configure.ac # The configure script will be unable to create config.h if it # contains Win32-style line endings. + rm -f configure.ac sed 's/ -$//' ${LYX_DIR}/configure.ac > configure.ac.$$ - cmp -s ${LYX_DIR}/configure.ac configure.ac.$$ && { +$//' config/configure.ac > configure.ac.$$ + cmp -s config/configure.ac configure.ac.$$ && { rm -f configure.ac.$$ } || { - mv -f configure.ac.$$ ${LYX_DIR}/configure.ac + mv -f configure.ac.$$ config/configure.ac echo 'configure.ac has Win32-style line endings. Corrected' >&2 } @@ -299,7 +299,7 @@ install_lyx() } make install || { - echo "Failed to install $LYX_DIR" >&2 + echo "Failed to install" >&2 exit 1 } ) @@ -311,9 +311,9 @@ test $# -ne 0 && LYX_VERSION_STR=$1 check_dirs_exist || exit 1 query_qt || exit 1 check_files_exist || exit 1 -#build_dtl || exit 1 -#build_aspell || exit 1 -#build_aspell_dicts || exit 1 +build_dtl || exit 1 +build_aspell || exit 1 +build_aspell_dicts || exit 1 build_lyx || exit 1 install_lyx || exit 1 # The end diff --git a/development/Win32/packaging/package_lyxwin.sh b/development/Win32/packaging/package_lyxwin.sh index 1e49589ec8..e8ec1cbd40 100644 --- a/development/Win32/packaging/package_lyxwin.sh +++ b/development/Win32/packaging/package_lyxwin.sh @@ -17,6 +17,7 @@ # ensure that the generated .dvi file is usable. # It removes all stuff generated by running configure: +# xfonts/ # doc/LaTeXConfig.lyx # lyxrc.defaults # packages.lst @@ -96,6 +97,7 @@ a\ # Strip the executables ( cd "${LYX_INSTALL_DIR}/Resources/lyx" + rm -rf xfonts for file in doc/LaTeXConfig.lyx lyxrc.defaults packages.lst textclass.lst do rm -f $file -- 2.39.5