#!/bin/sh
#
# Transform appdata/metainfo xml file into RPM metainfo(filename) provides
#
# Author: Michael Schroeder <mls@suse.de>
# Modified by Neal Gompa <ngompa13@gmail.com> to generate metainfo instead of appdata
# Based on other provides scripts from RPM
OLD_IFS="$IFS"
while read instfile ; do
case "$instfile" in
*.appdata.xml|*.metainfo.xml)
echo "metainfo()"
echo "metainfo(${instfile##*/})"
;;
esac
done
IFS=$OLD_IFS