#!/bin/bash if [ -z "$RPM_BUILD_ROOT" ] ; then echo "The $0 script is not intended to be executed directly." > /dev/stderr exit 1 fi # this grep will consume whole list of files from stdin if grep -qF /Xamarin.Forms.Platform.Tizen.dll ; then # if it's a X.F.P.Tizen package, then find the version of elm-sharp (or elm-sharp-nuget) in use rpm -qa --queryformat 'elm-sharp >= %{VERSION}\n' 'elm-sharp*' | head -n1 fi