diff options
author | jblum | 2008-09-30 16:53:46 +0000 |
---|---|---|
committer | jblum | 2008-09-30 16:53:46 +0000 |
commit | e5c137e191f0f0f9817e03b9d54c11788432da50 (patch) | |
tree | 56aa26b6a51b8cac0e99a3c6cfca398563aa5317 /grc | |
parent | 582c8108b5277ab3442ebdca6a2e919a6cb893a9 (diff) | |
download | gnuradio-e5c137e191f0f0f9817e03b9d54c11788432da50.tar.gz gnuradio-e5c137e191f0f0f9817e03b9d54c11788432da50.tar.bz2 gnuradio-e5c137e191f0f0f9817e03b9d54c11788432da50.zip |
test for xdg utils
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9682 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc')
-rw-r--r-- | grc/freedesktop/Makefile.am | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/grc/freedesktop/Makefile.am b/grc/freedesktop/Makefile.am index 192b20253..dbbf94ce4 100644 --- a/grc/freedesktop/Makefile.am +++ b/grc/freedesktop/Makefile.am @@ -24,24 +24,28 @@ include $(top_srcdir)/grc/Makefile.inc sizes = 32 48 64 128 256 install-data-local: - for size in $(sizes); do \ - xdg-icon-resource install --context mimetypes --theme gnome --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ - xdg-icon-resource install --context mimetypes --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ - xdg-icon-resource install --context apps --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \ - done - xdg-mime install --mode system $(srcdir)/gnuradio-grc.xml - xdg-desktop-menu install --mode system $(srcdir)/gnuradio-grc.desktop - xdg-desktop-menu install --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop + if test -s "`which xdg-mime`"; then \ + for size in $(sizes); do \ + xdg-icon-resource install --context mimetypes --theme gnome --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ + xdg-icon-resource install --context mimetypes --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png application-gnuradio-grc; \ + xdg-icon-resource install --context apps --mode system --size $${size} $(srcdir)/grc-icon-$${size}.png gnuradio-grc; \ + done; \ + xdg-mime install --mode system $(srcdir)/gnuradio-grc.xml; \ + xdg-desktop-menu install --mode system $(srcdir)/gnuradio-grc.desktop; \ + xdg-desktop-menu install --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop; \ + fi uninstall-local: - for size in $(sizes); do \ - xdg-icon-resource uninstall --context mimetypes --theme gnome --mode system --size $${size} application-gnuradio-grc; \ - xdg-icon-resource uninstall --context mimetypes --mode system --size $${size} application-gnuradio-grc; \ - xdg-icon-resource uninstall --context apps --mode system --size $${size} gnuradio-grc; \ - done - xdg-mime uninstall --mode system $(srcdir)/gnuradio-grc.xml - xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-grc.desktop - xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop + if test -s "`which xdg-mime`"; then \ + for size in $(sizes); do \ + xdg-icon-resource uninstall --context mimetypes --theme gnome --mode system --size $${size} application-gnuradio-grc; \ + xdg-icon-resource uninstall --context mimetypes --mode system --size $${size} application-gnuradio-grc; \ + xdg-icon-resource uninstall --context apps --mode system --size $${size} gnuradio-grc; \ + done; \ + xdg-mime uninstall --mode system $(srcdir)/gnuradio-grc.xml; \ + xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-grc.desktop; \ + xdg-desktop-menu uninstall --mode system $(srcdir)/gnuradio-usrp_diagnostics.desktop; \ + fi EXTRA_DIST = \ $(srcdir)/grc-icon-256.png \ |