From 97d540493ce6ce5fc8bef9ff77a07f5ef9c62546 Mon Sep 17 00:00:00 2001 From: Kevin James Date: Thu, 19 Feb 2009 19:36:29 +0000 Subject: [PATCH] Fix src/Makefile.in so it will check whether /usr/xxxxx is writable or not before trying to write files --- src/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile.in b/src/Makefile.in index 927b982..8d19636 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -445,8 +445,10 @@ install-applicationsDATA: $(applications_DATA) @list='$(applications_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ + if test -w "$(DESTDIR)$(applicationsdir)"; then \ echo " $(applicationsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(applicationsdir)/$$f'"; \ $(applicationsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(applicationsdir)/$$f"; \ + else echo "$(DESTDIR)$(applicationsdir) not writable: skipping $$f"; fi; \ done uninstall-applicationsDATA: @@ -482,7 +484,9 @@ install-pixmapDATA: $(pixmap_DATA) if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pixmapDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pixmapdir)/$$f'"; \ + if test -w "$(DESTDIR)$(pixmapdir)"; then \ $(pixmapDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pixmapdir)/$$f"; \ + else echo "$(DESTDIR)$(pixmapdir) not writable: skipping $$f"; fi \ done uninstall-pixmapDATA: