[4.0] Use strip (instead of eu-strip) to support --strip-debug of *.so at build time
[platform/upstream/rpm.git] / scripts / desktop-file.prov
1 #!/bin/sh
2 #
3 # Transform desktop mimetype info into RPM mimehandler(type) provides
4 #
5 # Author: Richard Hughes <richard@hughsie.com>
6 # Based on other provides scripts from RPM
7
8 OLD_IFS="$IFS"
9 while read instfile ; do
10         case "$instfile" in
11         *.desktop)
12                 if ! grep -q '^Type=Application$' "$instfile"; then continue; fi
13                 if ! grep -q '^Exec=' "$instfile"; then continue; fi
14                 mime=`grep '^MimeType=' "$instfile" | cut -d'=' -f2`
15                 IFS=';'
16                 for type in $mime ; do
17                         echo 'mimehandler('$type')'
18                 done
19                 ;;
20         esac
21 done
22 IFS=$OLD_IFS
23