lyx_mirror/development/Win32/packaging/build_aspell.sh
Michael Schmitt 473ae1eebd Sync Windows installer sources with LyX 1.5 (trunk)
Win32/packaging/build_aspell.sh: add new aspell build script
Win32/packaging/installer/lyx_languages.polish.nsh: add polish translations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13416 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-18 15:01:23 +00:00

56 lines
788 B
Bash

#! /bin/sh
grab_sources() {
wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.4.tar.gz
}
unpack() {
gunzip aspell-0.60.4.tar.gz
tar xvf aspell-0.60.4.tar
}
build_it() {
(
cd aspell-0.60.4
# Add a missing #include.
grep '^# include "asc_ctype\.hpp"' common/file_util.cpp >/dev/null || {
sed '/^#ifdef WIN32 *$/,/^# *include <io\.h> *$/{
/<io\.h>/i\
# include "asc_ctype.hpp"
}' common/file_util.cpp > tmp
cmp -s common/file_util.cpp tmp || {
diff -u common/file_util.cpp tmp
mv -i tmp common/file_util.cpp
}
rm -f tmp
}
./configure \
--enable-static \
--disable-shared \
--prefix=c:/Aspell || {
echo 'configure failed' >&2
exit 1
}
make
)
}
install_it() {
(
cd aspell-0.60.4
make install
)
}
build_it
install_it
# The end