tfix mime installation also when xdg-mime is not present - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e8c7120fa4e0bd592bb5179be90d236a2befcadb
DIR parent 6cb3571ed941b1bdd1160e4f76b4db46fad5c63e
HTML Author: Jaromil <jaromil@dyne.org>
Date: Fri, 13 May 2011 16:29:59 +0200
fix mime installation also when xdg-mime is not present
ttested on arch
Diffstat:
M share/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/share/Makefile.am b/share/Makefile.am
t@@ -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; \