[gnome-weather] Replace launcher script with a symlink to the actual application



commit 00bd5a451e08208171a900bf2c386155c607dd11
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Feb 8 19:58:35 2014 +0100

    Replace launcher script with a symlink to the actual application
    
    Now that we use --gapplication-service, launching the application
    outside of DBus does the expected thing of opening a new window,
    and the launcher becomes unnecessary.
    The biggest advantage is restoring "jhbuild run gnome-weather"
    from outside a jhbuild session, but we also get decent --help.

 src/Makefile.am   |   10 ++++++++--
 src/gnome-weather |    2 --
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b79f942..f26a984 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,7 @@
 NULL =
 
-dist_bin_SCRIPTS = gnome-weather
-nodist_pkgdata_SCRIPTS = org.gnome.Weather.Application
+appdir = $(pkgdatadir)
+nodist_app_SCRIPTS = org.gnome.Weather.Application
 
 resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies 
$(srcdir)/$(PACKAGE_NAME).src.gresource.xml)
 $(PACKAGE_NAME).src.gresource: $(PACKAGE_NAME).src.gresource.xml $(resource_files)
@@ -35,4 +35,10 @@ CLEANFILES = \
        $(PACKAGE_NAME).src.gresource \
        $(NULL)
 
+install-exec-hook:
+       $(MKDIR_P) $(DESTDIR)$(bindir)
+       $(LN_S) $(pkglibdir)/$(PACKAGE_NAME) $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
+uninstall-hook:
+       -rm -f $(DESTDIR)$(bindir)/$(PACKAGE_NAME)
+
 -include $(top_srcdir)/git.mk


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