upgrade rpm version to 4.14.1
[platform/upstream/rpm.git] / scripts / metainfo.prov
1 #!/bin/sh
2 #
3 # Transform appdata/metainfo xml file into RPM metainfo(filename) provides
4 #
5 # Author: Michael Schroeder <mls@suse.de>
6 # Modified by Neal Gompa <ngompa13@gmail.com> to generate metainfo instead of appdata
7 # Based on other provides scripts from RPM
8
9 OLD_IFS="$IFS"
10 while read instfile ; do
11         case "$instfile" in
12         *.appdata.xml|*.metainfo.xml)
13                 echo "metainfo()"
14                 echo "metainfo(${instfile##*/})"
15                 ;;
16         esac
17 done
18 IFS=$OLD_IFS
19