fix mime installation also when xdg-mime is not present

tested on arch
This commit is contained in:
Jaromil 2011-05-13 16:29:59 +02:00
parent 6cb3571ed9
commit e8c7120fa4

View file

@ -30,7 +30,7 @@ MimePkg = tomb.mimepkg
install-data-hook:
@echo "installing mime type"
@if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
@if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; else mkdir -p $(datadir)/mime/packages; cp dyne-tomb.xml $(datadir)/mime/packages ; fi
@echo "installing icons";
@if ! [ -n `which xdg-icon-resource` ]; then \
xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; \