tcheck existance of mime helpers in shared installs - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e355625ac5e9cdaa91a259849c4b1d939c71c6c4
DIR parent de283fde162c571e5ff5f87cbc7d089cef713a60
HTML Author: Jaromil <jaromil@dyne.org>
Date: Thu, 24 Feb 2011 23:06:28 +0100
check existance of mime helpers in shared installs
Diffstat:
M share/Makefile.am | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/share/Makefile.am b/share/Makefile.am
t@@ -20,12 +20,12 @@ AppInstDeskdir = $(datadir)/app-install/desktop
AppInstDesk_DATA = tomb.desktop
install-data-hook:
- @echo "installing mime type"; xdg-mime install dyne-tomb.xml
+ @echo "installing mime type"
+ @if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
@mkdir -p $(prefix)/lib/mime/packages
@echo "application/x-tomb-volume; tomb-open '%s'; priority=8" > $(prefix)/lib/mime/packages/tomb
@echo "installing icons";
- @xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort
- @xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort
+ @if ! [ -n `which xdg-icon-resource install` ]; then xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort; fi
@if ! [ -n `which update-desktop-database` ]; then echo update-desktop-database; update-desktop-database; fi
@if ! [ -n `which update-menus` ]; then echo update-menus; update-menus; fi
- update-mime
+ @if ! [ -n `which update-mime` ]; then echo update-mime; update-mime; fi