From aa0e8794950b8fd5bcc39a1136da7b806d712e9e Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sun, 4 Feb 2007 01:30:50 +0000 Subject: Generate a MIME type list for use in front ends' .desktop files etc. The list contains one type per line. (A scripted method is used to allow for cross-compilation.) CVS patchset: 8589 CVS date: 2007/02/04 01:30:50 --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 75664bffb..afc847855 100644 --- a/Makefile.am +++ b/Makefile.am @@ -78,6 +78,20 @@ slackbuild: PREFIX="/usr" misc/SlackBuild +STRINGS=$(shell which -- "${CHOST}-strings" 2>/dev/null || which strings 2>/dev/null || false) + +install-exec-hook: + find $(top_srcdir) -name \*.so | \ + xargs $(STRINGS) | \ + egrep '^([-a-z]+/[-+.a-z0-9]+:[^:]+:[^;]+;[ \t]*)+' | \ + sed -e 's/:[^;]\+;/\n/g' | \ + sort -u | \ + sed -e '1 d' >$(DESTDIR)$(XINE_PLUGINDIR)/mime.types + +uninstall-hook: + rm -f $(DESTDIR)$(XINE_PLUGINDIR)/mime.types + + install-data-hook: @rm -f $(DESTDIR)$(XINE_PLUGINDIR)/*.la @rm -f $(DESTDIR)$(XINE_PLUGINDIR)/*/*.la -- cgit v1.2.3