c66608cfaa
- preliminaries for extracting font provides (not enabled yet) - dont classify font metrics data as fonts - only run script dep extraction once per file, duh
22 lines
435 B
Bash
Executable File
22 lines
435 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Transform desktop mimetype info into RPM mimehandler(type) provides
|
|
#
|
|
# Author: Richard Hughes <richard@hughsie.com>
|
|
# Based on other provides scripts from RPM
|
|
|
|
OLD_IFS="$IFS"
|
|
while read instfile ; do
|
|
case "$instfile" in
|
|
*.desktop)
|
|
mime=`cat $instfile | grep MimeType= | cut -d'=' -f2`
|
|
IFS=';'
|
|
for type in $mime ; do
|
|
echo 'mimehandler('$type')'
|
|
done
|
|
;;
|
|
esac
|
|
done
|
|
IFS=$OLD_IFS
|
|
|