#!/bin/sh # # Transform appdata/metainfo xml file into RPM metainfo(filename) provides # # Author: Michael Schroeder # Modified by Neal Gompa 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