[tracker/libtracker-common-cleanup: 13/16] data: Make sure miner links don't fail with missing parent dir



commit 0bb69b04e9102e645418d63d83354152f6c882b2
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Sep 26 21:45:24 2014 +0100

    data: Make sure miner links don't fail with missing parent dir

 src/miners/apps/Makefile.am        |    9 +++++----
 src/miners/fs/Makefile.am          |    9 +++++----
 src/miners/rss/Makefile.am         |    9 +++++----
 src/miners/user-guides/Makefile.am |    9 +++++----
 src/plugins/evolution/Makefile.am  |    9 +++++----
 src/tracker-extract/Makefile.am    |    9 +++++----
 6 files changed, 30 insertions(+), 24 deletions(-)
---
diff --git a/src/miners/apps/Makefile.am b/src/miners/apps/Makefile.am
index d31dd57..9e450b7 100644
--- a/src/miners/apps/Makefile.am
+++ b/src/miners/apps/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Desktop files: First we fix the VERSION and libexecdir
 %.desktop.in: %.desktop.in.in
diff --git a/src/miners/fs/Makefile.am b/src/miners/fs/Makefile.am
index fec5cdf..ef3a303 100644
--- a/src/miners/fs/Makefile.am
+++ b/src/miners/fs/Makefile.am
@@ -64,11 +64,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Desktop files: First we fix the VERSION and libexecdir
 if HAVE_LIBMEDIAART
diff --git a/src/miners/rss/Makefile.am b/src/miners/rss/Makefile.am
index 7c1dbc6..6385c0e 100644
--- a/src/miners/rss/Makefile.am
+++ b/src/miners/rss/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Desktop files: First we fix the VERSION and libexecdir
 %.desktop.in: %.desktop.in.in
diff --git a/src/miners/user-guides/Makefile.am b/src/miners/user-guides/Makefile.am
index 60112bc..74aea0c 100644
--- a/src/miners/user-guides/Makefile.am
+++ b/src/miners/user-guides/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Desktop files: First we fix the VERSION and libexecdir
 %.desktop.in: %.desktop.in.in
diff --git a/src/plugins/evolution/Makefile.am b/src/plugins/evolution/Makefile.am
index 6b5d8ff..595613a 100644
--- a/src/plugins/evolution/Makefile.am
+++ b/src/plugins/evolution/Makefile.am
@@ -54,11 +54,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Dist / Clean rules for all data
 CLEANFILES += \
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index b8ceaa8..6a0b58f 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -605,11 +605,12 @@ INTLTOOL_SERVICE_RULE='%.service:   %.service.in   $(INTLTOOL_MERGE) $(wildcard
 @INTLTOOL_SERVICE_RULE@
 
 install-data-hook:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(LN_S) -f $(servicedir)/$(service_DATA)
+       $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+       $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+                  "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
 uninstall-local:
-       cd $(DESTDIR)$(datadir)/tracker/miners && \
-               $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+       $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
 
 # Desktop files: First we fix the VERSION and libexecdir
 %.desktop.in: %.desktop.in.in


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