]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/build_aspell.sh
Fix humiliating typo and update the link to the licence page on the web.
[lyx.git] / development / Win32 / packaging / build_aspell.sh
1 #! /bin/sh
2
3 grab_sources() {
4
5 wget ftp://ftp.gnu.org/gnu/aspell/aspell-0.60.4.tar.gz
6
7 }
8
9 unpack() {
10
11 gunzip aspell-0.60.4.tar.gz
12 tar xvf aspell-0.60.4.tar
13
14 }
15
16 build_it() {
17 (
18     cd aspell-0.60.4
19
20     # Add a missing #include.
21     grep '^#  include "asc_ctype\.hpp"' common/file_util.cpp >/dev/null || {
22         sed '/^#ifdef WIN32 *$/,/^# *include <io\.h> *$/{
23 /<io\.h>/i\
24 #  include "asc_ctype.hpp"
25 }'  common/file_util.cpp > tmp
26
27         cmp -s common/file_util.cpp tmp || {
28             diff -u common/file_util.cpp tmp
29             mv -i tmp common/file_util.cpp
30         }
31         rm -f tmp
32     }
33
34     ./configure \
35         --enable-static \
36         --disable-shared \
37         --prefix=c:/Aspell || {
38         echo 'configure failed' >&2
39         exit 1
40     }
41     make
42 )
43 }
44
45 install_it() {
46 (
47     cd aspell-0.60.4
48     make install
49 )
50 }
51
52 build_it
53 install_it
54
55 # The end