bump product version to 6.4.0.3
[LibreOffice.git] / sysui / desktop / solaris / mailcap
blob910fcbeb89cd65ae214f539a95cc312a5b1146c9
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 #   Licensed to the Apache Software Foundation (ASF) under one or more
11 #   contributor license agreements. See the NOTICE file distributed
12 #   with this work for additional information regarding copyright
13 #   ownership. The ASF licenses this file to you under the Apache
14 #   License, Version 2.0 (the "License"); you may not use this file
15 #   except in compliance with the License. You may obtain a copy of
16 #   the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 if [ "$1" = install ]
20 then
21 # backing out existing entries to avoid duplicates
22 sed '
23 /^# OpenOffice.org/d
24 /^application\/vnd\.oasis\.opendocument/d
25 /^application\/vnd\.openofficeorg/d
26 /^application\/vnd\.sun/d
27 /^application\/vnd\.stardivision/d
28 /^application\/vnd\.ms-word/d
29 /^application\/vnd\.ms-excel/d
30 /^application\/vnd\.ms-powerpoint/d
31 /^application\/x-star/d
32 /excel/d
33 /ms[-]*word/d
34 /powerpoint/d
35 ' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null
37 # now append our stuff to the temporary file
38 cat << END
39 # LibreOffice
40 application/vnd.oasis.opendocument.text; %PREFIX -view %s
41 application/vnd.oasis.opendocument.text-flat-xml; %PREFIX -view %s
42 application/vnd.oasis.opendocument.text-template; %PREFIX -view %s
43 application/vnd.oasis.opendocument.text-master-template; %PREFIX -view %s
44 application/vnd.oasis.opendocument.text-web; %PREFIX -view %s
45 application/vnd.oasis.opendocument.text-master; %PREFIX -view %s
46 application/vnd.sun.xml.writer; %PREFIX -view %s
47 application/vnd.sun.xml.writer.template; %PREFIX -view %s
48 application/vnd.sun.xml.writer.global; %PREFIX -view %s
49 application/vnd.stardivision.writer; %PREFIX -view %s
50 application/vnd.stardivision.writer-global; %PREFIX -view %s
51 application/x-starwriter; %PREFIX -view %s
52 application/vnd.oasis.opendocument.formula; %PREFIX -view %s
53 application/vnd.sun.xml.math; %PREFIX -view %s
54 application/vnd.stardivision.math; %PREFIX -view %s
55 application/x-starmath; %PREFIX -view %s
56 application/msword; %PREFIX -view %s
57 application/vnd.oasis.opendocument.spreadsheet; %PREFIX -view %s
58 application/vnd.oasis.opendocument.spreadsheet-flat-xml; %PREFIX -view %s
59 application/vnd.oasis.opendocument.spreadsheet-template; %PREFIX -view %s
60 application/vnd.sun.xml.calc; %PREFIX -view %s
61 application/vnd.sun.xml.calc.template; %PREFIX -view %s
62 application/vnd.stardivision.calc; %PREFIX -view %s
63 application/x-starcalc; %PREFIX -view %s
64 application/vnd.stardivision.chart; %PREFIX -view %s
65 application/x-starchart; %PREFIX -view %s
66 application/excel; %PREFIX -view %s
67 application/msexcel; %PREFIX -view %s
68 application/vnd.ms-excel; %PREFIX -view %s
69 application/x-msexcel; %PREFIX -view %s
70 application/vnd.oasis.opendocument.presentation; %PREFIX -view %s
71 application/vnd.oasis.opendocument.presentation-flat-xml; %PREFIX -view %s
72 application/vnd.oasis.opendocument.presentation-template; %PREFIX -view %s
73 application/vnd.sun.xml.impress; %PREFIX -view %s
74 application/vnd.sun.xml.impress.template; %PREFIX -view %s
75 application/vnd.stardivision.impress; %PREFIX -view %s
76 application/x-starimpress; %PREFIX -view %s
77 application/powerpoint; %PREFIX -view %s
78 application/mspowerpoint; %PREFIX -view %s
79 application/vnd.ms-powerpoint; %PREFIX -view %s
80 application/x-mspowerpoint; %PREFIX -view %s
81 application/vnd.oasis.opendocument.graphics; %PREFIX -view %s
82 application/vnd.oasis.opendocument.graphics-flat-xml; %PREFIX -view %s
83 application/vnd.oasis.opendocument.graphics-template; %PREFIX -view %s
84 application/vnd.sun.xml.draw; %PREFIX -view %s
85 application/vnd.sun.xml.draw.template; %PREFIX -view %s
86 application/vnd.stardivision.draw; %PREFIX -view %s
87 application/x-stardraw; %PREFIX -view %s
88 application/vnd.sun.xml.base; %PREFIX -view %s
89 application/vnd.oasis.opendocument.database; %PREFIX -view %s
90 application/vnd.writerperfect; %PREFIX -view %s
91 application/wordperfect5.1; %PREFIX -view %s
92 application/x-wordperfect; %PREFIX -view %s
93 application/wordperfect; %PREFIX -view %s
94 application/vnd.lotus-wordpro; %PREFIX -view %s
95 application/wpwin; %PREFIX -view %s
96 application/vnd.openofficeorg.extension; %PREFIX %s
97 application/x-hwp; %PREFIX -view %s
98 END
99 else
100 # backing all entries pointing to our binary
101 sed '/%PREFIX/d' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null