[PATCH] removal of hardcodeed location of multisync.desktop

Björn Torkelsson <[email protected]>
Newsgroups gmane.comp.gnome.apps.multisync.devel
Message-ID <[email protected]>
Hi,

A small patch to remove the hardcoded location of multisync.desktop

/torkel
desktop.patch (text/x-patch, 780 B)
Index: Makefile.am
===================================================================
RCS file: /cvsroot/multisync/multisync/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- Makefile.am	7 Dec 2003 20:56:53 -0000	1.7
+++ Makefile.am	6 Apr 2004 10:21:52 -0000
@@ -6,6 +6,10 @@
 	autogen.sh \
 	multisync.glade
 
+
+desktopdir = $(datadir)/applications
+desktop_file = multisync.desktop
+
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
@@ -25,7 +29,8 @@
 	  done \
 	fi
 	rm -f $(DESTDIR)$(pkgincludedir)/*~
-	cp multisync.desktop /usr/share/applications/
+	$(mkinstalldirs) $(DESTDIR)$(desktopdir)
+	$(INSTALL_DATA) $(desktop_file) $(DESTDIR)$(desktopdir)
 	@cat $(srcdir)/post-install
 
 dist-hook:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.