-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libreoffice-help-package
executable file
·67 lines (65 loc) · 1.38 KB
/
libreoffice-help-package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
l=`echo $1 |sed -e 's,-,_,g'`
case $1 in
ar) ln="Arabic";;
bg) ln="Bulgarian";;
bn) ln="Bengali";;
bs) ln="Bosnian";;
ca) ln="Catalan";;
cs) ln="Czech";;
da) ln="Danish";;
de) ln="German";;
dz) ln="Dzongkha";;
el) ln="Greek";;
en-GB) ln="British English";;
es) ln="Spanish";;
et) ln="Estonian";;
eu) ln="Basque";;
fi) ln="Finnish";;
fr) ln="French";;
gl) ln="Galician";;
gu) ln="Gujarati";;
he) ln="Hebrew";;
hi) ln="Hindi";;
hr) ln="Croatian";;
hu) ln="Hungarian";;
it) ln="Italian";;
lt) ln="Lithuanian";;
lv) ln="Latvian";;
ja) ln="Japanese";;
ko) ln="Korean";;
mk) ln="Macedonian";;
nb) ln="Norwegian (Bokmal)";;
nl) ln="Dutch";;
nn) ln="Norwegian (Nynorsk)";;
pl) ln="Polish";;
pt) ln="Portuguese";;
pt-BR) ln="Brazilian";;
ro) ln="Romanian";;
ru) ln="Russian";;
si) ln="Sinhalese";;
sk) ln="Slovak";;
sl) ln="Slovenian";;
sv) ln="Swedish";;
ta) ln="Tamil";;
tr) ln="Turkish";;
uk) ln="Ukrainian";;
zh-CN) ln="Simplified Chinese";;
zh-TW) ln="Traditional Chinese";;
en-US) ln="English";;
*) ln="$l";;
esac
cat <<EOF
%package help-$l
Summary: ${ln} help for LibreOffice
Group: Office
Provides: %{ooname}-help = %{EVRD}
Provides: LibreOffice-help-${l} = %{EVRD}
EOF
[ "$l" != "en_US" ] && echo "Requires: %{ooname}-l10n-${l} = %{EVRD}"
cat <<EOF
%description help-${l}
This package contains the localized help files of LibreOffice in
${ln}
EOF
echo "%files help-$l -f file-lists/help_${l}_list.txt"