xref: /aoo42x/main/sysui/desktop/solaris/mime.types (revision 184e05d2)
1# *************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20# *************************************************************
21
22if [ "$1" = install ]
23then
24# backing out existing entries to avoid duplicates
25sed '
26/application\/vnd\.oasis\.opendocument/d
27/application\/vnd\.sun/d
28/application\/vnd\.stardivision/d
29' ${PKG_INSTALL_ROOT}/etc/mime.types 2>/dev/null
30
31# now append our stuff to the temporary file
32cat << END
33application/vnd.oasis.opendocument.text odt
34application/vnd.oasis.opendocument.text-template ott
35application/vnd.oasis.opendocument.text-web oth
36application/vnd.oasis.opendocument.text-master odm
37application/vnd.oasis.opendocument.graphics odg
38application/vnd.oasis.opendocument.graphics-template otg
39application/vnd.oasis.opendocument.presentation odp
40application/vnd.oasis.opendocument.presentation-template otp
41application/vnd.oasis.opendocument.spreadsheet ods
42application/vnd.oasis.opendocument.spreadsheet-template ots
43application/vnd.oasis.opendocument.chart odc
44application/vnd.oasis.opendocument.formula odf
45application/vnd.oasis.opendocument.image odi
46application/vnd.sun.xml.writer sxw
47application/vnd.sun.xml.writer.template stw
48application/vnd.sun.xml.writer.global sxg
49application/vnd.stardivision.writer sdw vor
50application/vnd.stardivision.writer-global sgl
51application/vnd.sun.xml.calc sxc
52application/vnd.sun.xml.calc.template stc
53application/vnd.stardivision.calc sdc
54application/vnd.stardivision.chart sds
55application/vnd.sun.xml.impress sxi
56application/vnd.sun.xml.impress.template sti
57application/vnd.stardivision.impress sdd sdp
58application/vnd.sun.xml.draw sxd
59application/vnd.sun.xml.draw.template std
60application/vnd.stardivision.draw sda
61application/vnd.sun.xml.math sxm
62application/vnd.stardivision.math smf
63application/vnd.sun.xml.base odb
64application/vnd.openofficeorg.extension oxt
65application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
66application/vnd.ms-word.document.macroenabled.12 docm
67application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
68application/vnd.ms-word.template.macroenabled.12 dotm
69application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
70application/vnd.ms-excel.sheet.macroenabled.12 xlsm
71application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
72application/vnd.ms-excel.template.macroenabled.12 xltm
73application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
74application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm
75application/vnd.openxmlformats-officedocument.presentationml.template potx
76application/vnd.ms-powerpoint.template.macroenabled.12 potm
77END
78else
79cat ${PKG_INSTALL_ROOT}/etc/mime.types
80fi
81