]>
Commit | Line | Data |
---|---|---|
1c6fec54 AM |
1 | Index: bin/setup.in |
2 | =================================================================== | |
3 | RCS file: /cvs/gnome/ooo-build/bin/setup.in,v | |
4 | retrieving revision 1.66 | |
e443c73b AM |
5 | retrieving revision 1.68 |
6 | diff -u -u -r1.66 -r1.68 | |
1c6fec54 | 7 | --- openoffice/bin/setup.in 3 Jul 2004 02:14:36 -0000 1.66 |
e443c73b AM |
8 | +++ openoffice/bin/setup.in 7 Jul 2004 17:26:23 -0000 1.68 |
9 | @@ -72,13 +72,19 @@ | |
10 | ||
11 | else | |
12 | if test "z$CONFIGURE_OPTIONS" = "z"; then | |
13 | - CONFIGURE_OPTIONS="--with-lang=$LANGS \ | |
14 | - --enable-libart --enable-libsn --enable-crashdump=no \ | |
15 | - --without-fonts --disable-rpath \ | |
16 | - --with-system-zlib --enable-fontconfig \ | |
17 | - --with-system-freetype --disable-mozilla \ | |
18 | - --with-widget-sets=original,kde,gtk"; | |
1c6fec54 AM |
19 | + if [ -s ./setup.configure ]; then |
20 | + . ./setup.configure | |
21 | + echo "Using configure options from the ./setup.configure file"; | |
22 | + else | |
e443c73b AM |
23 | + CONFIGURE_OPTIONS="--with-lang=$LANGS \ |
24 | + --enable-libart --enable-libsn --enable-crashdump=no \ | |
25 | + --without-fonts --disable-rpath \ | |
26 | + --with-system-zlib --enable-fontconfig \ | |
27 | + --with-system-freetype --disable-mozilla \ | |
28 | + --with-widget-sets=original,kde,gtk"; | |
1c6fec54 | 29 | + fi |
e443c73b | 30 | else |
dc7f1933 | 31 | + echo "CONFIGURE_OPTIONS=\"`echo \"$CONFIGURE_OPTIONS\" | xargs`\"" > ./setup.configure |
e443c73b | 32 | echo "Using configure options from the environment"; |
1c6fec54 AM |
33 | fi |
34 | fi | |
c9421e52 AM |
35 | --- openoffice/dev/null 1970-01-01 01:00:00.000000000 +0100 |
36 | +++ openoffice/bin/install-dictionaries 2004-07-06 02:28:20.471312936 +0200 | |
37 | @@ -0,0 +1,88 @@ | |
38 | +#!/bin/sh | |
39 | + | |
40 | + | |
41 | +DICTDIR=$OOINSTDIR/share/dict/ooo | |
42 | + | |
43 | +if (! test -d $DICTDIR); then | |
44 | + echo "Cannot find $DICTDIR; make sure you installed OOo first" | |
45 | + exit 1; | |
46 | +fi | |
47 | + | |
48 | + | |
49 | +# the available dictionaries | |
50 | +DICTS="hyph_cs_CZ | |
51 | + hyph_es_ES | |
52 | + hyph_fi_FI | |
53 | + hyph_fr_FR | |
54 | + hyph_ga_IE | |
55 | + hyph_hu_HU | |
56 | + hyph_is_IS | |
57 | + hyph_it_IT | |
58 | + hyph_lt_LT | |
59 | + hyph_nl_NL | |
60 | + hyph_pl_PL | |
61 | + hyph_pt_PT | |
62 | + hyph_sk_SK | |
63 | + hyph_sv_SE | |
64 | + hyph_uk_UA | |
65 | + thes_de_DE" | |
66 | + | |
67 | +for DICT in $DICTS ; do | |
68 | + if test -f $SRCDIR/$DICT.tar.bz2 ; then | |
69 | + echo "Unpacking $DICT dictionary..." | |
70 | + mkdir -m 755 -p $DOCDIR/dictionaries | |
71 | + TMPDIR=`mktemp -d /tmp/ooo-build.dict.XXXXXX` | |
72 | + tar -xjf $SRCDIR/$DICT.tar.bz2 -C $TMPDIR || exit 1; | |
73 | + chmod 644 $TMPDIR/*.* || exit 1; | |
74 | + | |
75 | + DICTNAME=${DICT/thes/th} | |
76 | + | |
77 | + test -f $TMPDIR/$DICTNAME.dic && mv $TMPDIR/$DICTNAME.dic $DICTDIR/ | |
78 | + test -f $TMPDIR/$DICTNAME.dat && mv $TMPDIR/$DICTNAME.dat $DICTDIR/ | |
79 | + test -f $TMPDIR/$DICTNAME.idx && mv $TMPDIR/$DICTNAME.idx $DICTDIR/ | |
80 | + mv $TMPDIR/*.* $DOCDIR/dictionaries || exit 1; | |
81 | + rmdir $TMPDIR || exit 1; | |
82 | + else | |
83 | + echo "Warning: $DICT dictionary is not available..." | |
84 | + fi | |
85 | +done | |
86 | + | |
87 | +echo "Creating dictionary.lst..." | |
88 | +cd $DICTDIR | |
89 | +> dictionary.lst | |
90 | + | |
91 | +# Dictionaries | |
92 | +for i in *.aff; do | |
93 | + # does any exist? | |
94 | + if test "z$i" != 'z*.aff' ; then | |
95 | + LANGUAGE=`echo $i | cut -b1-2` | |
96 | + COUNTRY=`echo $i | cut -b4-5` | |
97 | + FULL=`echo $i | cut -b1-5` | |
98 | + | |
99 | + echo "DICT $LANGUAGE $COUNTRY $FULL" >> dictionary.lst | |
100 | + fi | |
101 | +done | |
102 | + | |
103 | +# Hyphenation tables | |
104 | +for i in hyph*.dic; do | |
105 | + # does any exist? | |
106 | + if test "z$i" != 'zhyph*.dic' ; then | |
107 | + LANGUAGE=`echo $i | cut -b6-7` | |
108 | + COUNTRY=`echo $i | cut -b9-10` | |
109 | + FULL=`echo $i | cut -b6-10` | |
110 | + | |
111 | + echo "HYPH $LANGUAGE $COUNTRY $FULL" >> dictionary.lst | |
112 | + fi | |
113 | +done | |
114 | + | |
115 | +# Thesauruses | |
116 | +for i in th*.dat; do | |
117 | + # does any exist? | |
118 | + if test "z$i" != 'zth*.dat' ; then | |
119 | + LANGUAGE=`echo $i | cut -b4-5` | |
120 | + COUNTRY=`echo $i | cut -b7-8` | |
121 | + FULL=`echo $i | cut -b1-8` | |
122 | + | |
123 | + echo "THES $LANGUAGE $COUNTRY $FULL" >> dictionary.lst | |
124 | + fi | |
125 | +done |