summaryrefslogtreecommitdiff
path: root/sysui/desktop/redhat/makefile.mk
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-09-09 08:08:27 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-09-09 08:08:27 +0000
commit09d8fe74da1036745e6f5285b8dc367cdfdcbcb3 (patch)
tree669819a1676f8c09128876f9c30c719be87465cc /sysui/desktop/redhat/makefile.mk
parentf4c859abf874ed105ff2e0f4d3ef6d692ebd0267 (diff)
INTEGRATION: CWS oasissysint (1.5.12); FILE MERGED
2004/08/27 14:00:04 obr 1.5.12.1: #i32277# added mimetype registration for new oasis file types
Diffstat (limited to 'sysui/desktop/redhat/makefile.mk')
-rw-r--r--sysui/desktop/redhat/makefile.mk45
1 files changed, 38 insertions, 7 deletions
diff --git a/sysui/desktop/redhat/makefile.mk b/sysui/desktop/redhat/makefile.mk
index ff03b9300fcd..1f83e3c3b6d3 100644
--- a/sysui/desktop/redhat/makefile.mk
+++ b/sysui/desktop/redhat/makefile.mk
@@ -72,7 +72,7 @@ TARGET=redhat
# --- Files --------------------------------------------------------
-LAUNCHERLIST = writer calc draw impress math printeradmin
+LAUNCHERLIST = writer calc draw impress math base printeradmin
LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop
LAUNCHERDIR = $(shell cd $(MISC)$/$(TARGET); pwd)
@@ -90,9 +90,33 @@ MIMELIST = \
presentation \
presentation-template \
formula \
- master-document
+ master-document \
+ oasis-text \
+ oasis-text-template \
+ oasis-spreadsheet \
+ oasis-spreadsheet-template \
+ oasis-drawing \
+ oasis-drawing-template \
+ oasis-presentation \
+ oasis-presentation-template \
+ oasis-formula \
+ oasis-master-document \
+ oasis-database
+
+MIMEICONLIST = \
+ text \
+ text-template \
+ spreadsheet \
+ spreadsheet-template \
+ drawing \
+ drawing-template \
+ presentation \
+ presentation-template \
+ formula \
+ master-document \
+ database
-GNOMEMIMEDEPN = ../mimetypes/{$(MIMELIST)}.keys
+GNOMEMIMEDEPN = ../mimetypes/{$(MIMELIST)}.keys ../mimetypes/openoffice.mime
KDEMIMEDEPN = ../mimetypes/{$(MIMELIST)}.desktop
KDEMIMEFLAGFILE = \
@@ -100,13 +124,13 @@ KDEMIMEFLAGFILE = \
GNOMEICONLIST = \
{16x16 22x22 32x32 48x48}/apps/$(UNIXFILENAME)-{$(LAUNCHERLIST)}.png \
- {16x16 22x22 32x32 48x48}/mimetypes/$(UNIXFILENAME)-{$(MIMELIST)}.png
+ {16x16 22x22 32x32 48x48}/mimetypes/$(UNIXFILENAME)-{$(MIMEICONLIST)}.png
KDEICONLIST = \
hicolor/{16x16 22x22 32x32 48x48}/apps/$(UNIXFILENAME)-{$(LAUNCHERLIST)}.png \
- hicolor/{16x16 22x22 32x32 48x48}/mimetypes/$(UNIXFILENAME)-{$(MIMELIST)}.png \
+ hicolor/{16x16 22x22 32x32 48x48}/mimetypes/$(UNIXFILENAME)-{$(MIMEICONLIST)}.png \
locolor/{16x16 22x22 32x32}/apps/$(UNIXFILENAME)-{$(LAUNCHERLIST)}.png \
- locolor/{16x16 22x22 32x32}/mimetypes/$(UNIXFILENAME)-{$(MIMELIST)}.png
+ locolor/{16x16 22x22 32x32}/mimetypes/$(UNIXFILENAME)-{$(MIMEICONLIST)}.png
.IF "$(RPM)"!=""
@@ -116,6 +140,7 @@ RPMDEPN = \
$(MISC)/$(TARGET)/usr/share/applnk-$(TARGET)/Office.flag \
$(MISC)/$(TARGET)/usr/share/application-registry/$(UNIXFILENAME).applications \
$(MISC)/$(TARGET)/usr/share/mime-info/$(UNIXFILENAME).keys \
+ $(MISC)/$(TARGET)/usr/share/mime-info/$(UNIXFILENAME).mime \
$(MISC)/$(TARGET)/usr/share/mimelnk/application.flag \
$(MISC)/$(TARGET)/usr/share/icons/gnome/{$(GNOMEICONLIST)} \
$(MISC)/$(TARGET)/usr/share/icons/{$(KDEICONLIST)}
@@ -175,6 +200,12 @@ $(MISC)/$(TARGET)/usr/share/mime-info/$(UNIXFILENAME).keys : $(GNOMEMIMEDEPN) ..
@$(PERL) ../share/translate.pl -p $(PRODUCTNAME) -d $(MISC)/$(TARGET) --ext "keys" --key "description" $(ULFDIR)/documents.ulf
@cat $(MISC)/$(TARGET)/{$(MIMELIST)}.keys > $@
+$(MISC)/$(TARGET)/usr/share/mime-info/$(UNIXFILENAME).mime : ../mimetypes/openoffice.mime
+ @$(MKDIRHIER) $(@:d)
+ @echo Creating GNOME .mime file ..
+ @echo ---------------------------------
+ @cat $< | tr -d "\015" > $@
+
$(KDEMIMEFLAGFILE) : $(KDEMIMEDEPN) ../productversion.mk ../share/brand.pl ../share/translate.pl $(ULFDIR)/documents.ulf
@$(MKDIRHIER) $(@:db)
@echo Creating KDE mimelnk entries ..
@@ -187,7 +218,7 @@ $(MISC)/$(TARGET)/usr/share/application-registry/$(UNIXFILENAME).applications :
@$(MKDIRHIER) $(@:d)
@echo Creating GNOME .applications file ..
@echo ---------------------------------
- @cat $< | tr -d "\015" | sed -e "s/openoffice/$(UNIXFILENAME)/" -e "s/%PRODUCTNAME/$(LONGPRODUCTNAME)/" > $@
+ @cat ../mimetypes/openoffice.applications | tr -d "\015" | sed -e "s/openoffice/$(UNIXFILENAME)/" -e "s/%PRODUCTNAME/$(LONGPRODUCTNAME)/" > $@
# --- packaging ---------------------------------------------------