diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-02-04 01:30:50 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-02-04 01:30:50 +0000 |
commit | aa0e8794950b8fd5bcc39a1136da7b806d712e9e (patch) | |
tree | d3e6aa49377027af8c0b22a9758c1592762f3f69 | |
parent | 8f8c8599f637cabb9a3c617934023fd854647cc9 (diff) | |
download | xine-lib-aa0e8794950b8fd5bcc39a1136da7b806d712e9e.tar.gz xine-lib-aa0e8794950b8fd5bcc39a1136da7b806d712e9e.tar.bz2 |
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
-rw-r--r-- | Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
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 |