[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CVS:oo-deb/debian rules,1.214.2.14.2.4,1.214.2.14.2.5



Update of /cvs/debian-openoffice/oo-deb/debian
In directory gluck:/tmp/cvs-serv4230

Modified Files:
      Tag: OPENOFFICE_ORG680
	rules 
Log Message:
Add quick hack for some .desktop icons


Index: rules
===================================================================
RCS file: /cvs/debian-openoffice/oo-deb/debian/rules,v
retrieving revision 1.214.2.14.2.4
retrieving revision 1.214.2.14.2.5
diff -u -d -r1.214.2.14.2.4 -r1.214.2.14.2.5
--- rules	14 Jan 2005 17:25:09 -0000	1.214.2.14.2.4
+++ rules	14 Jan 2005 23:32:08 -0000	1.214.2.14.2.5
@@ -17,6 +17,7 @@
 VER=2
 PKGDIR=debian/openoffice.org$(VER)
 OODIR=usr/lib/openoffice$(VER)
+MILESTONE=66
 
 # ensure that some scripts we need are executable.
 DUMMY:=$(shell if [ ! -x debian/scripts/setperms ]; then chmod 755 debian/scripts/setperms; fi)
@@ -40,7 +41,7 @@
 
 # Default flags to pass to configure of ooo-build
 CONFIGURE_FLAGS= --disable-post-install-scripts \
-                 --with-tag=src680-m66 \
+                 --with-tag=src680-$(MILESTONE) \
 		 --with-system-gcc \
 		 --with-distro=Debian \
 		 --with-vendor=Debian \
@@ -310,6 +311,17 @@
 	  mv $(PKGDIR)-core/$(OODIR)/program/$$f $(PKGDIR)-gnome/$(OODIR)/program || exit 1;\
 	done
 	mv $(PKGDIR)-core/$(OODIR)/program/libevoab2.so $(PKGDIR)-evolution/$(OODIR)/program
+	
+	# Nasy menu icons hack, urgently needs better version
+	dirname="`cd ooo-build/build/src680-m$(MILESTONE)/sysui/unx*.pro/misc/gnome; pwd`" ;\
+	for p in writer calc impress draw math; do \
+		mkdir -p -m755 $(PKGDIR)-$$p/usr/share/applications ;\
+	    sed -e 's,Exec=<progpath_utf8>/program/s\(.*\) %U,Exec=oo\1$(VER) %U,' \
+		    -e 's,Icon=<progpath>/share/icons/\(ooo_.*\.png\),Icon=\1,' \
+			-e 's,<productname>,OpenOffice.org2,' \
+		   < $$dirname/ooo680$$p.desktop \
+		   > $(PKGDIR)-$$p/usr/share/applications/ooo$(VER)-$$p.desktop ;\
+	done
 	
 	touch $@
 	



Reply to: