Commit 0fcb44f7 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

build: Test for duplicated mime-types

parent cfdb30a1
......@@ -132,6 +132,12 @@ else
echo "***************************************************************************" ; \
exit 1 ; \
fi
@if test x`grep '<mime-type' $(srcdir)/freedesktop.org.xml.in | tr -d '[:blank:]' | sort | uniq -d` != "x"; then \
echo "*************************************************************" ; \
echo "*** Some mime-types are duplicated, fix before committing ***" ; \
echo "*************************************************************" ; \
exit 1 ; \
fi
@echo Number of mime-types that might need generic-icon: `grep "mime-type type=" $(srcdir)/freedesktop.org.xml.in | grep -v video/ | grep -v image/ | grep -v text/ | grep -v audio/ | grep -v "octet-stream" | wc -l` ; \
echo Number of mime-types with a generic icon: `grep "generic-icon name=" $(srcdir)/freedesktop.org.xml.in | wc -l` ;
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment