osmo-release.sh: Improve of PKG_CHECK_MODULES from configure.ac

Remove brackets and check for "(" after PKG_CHECK_MODULES to avoid
getting comments containing the keyword.

Change-Id: Ie2b9a65d42615aa3cce6906ddd53758bc3052942
This commit is contained in:
Pau Espin 2020-01-02 18:33:24 +01:00
parent c6a8697800
commit 5d39e05bf4
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ check_configureac_debctrl_deps_match() {
else
configureac_file="configure.ac"
fi
configureac_list=$(grep -e "PKG_CHECK_MODULES" "${GIT_TOPDIR}/${configureac_file}" | cut -d "," -f 2 | tr -d ")" | tr -d " " | sed "s/>=/ /g")
configureac_list=$(grep -e "PKG_CHECK_MODULES(" "${GIT_TOPDIR}/${configureac_file}" | cut -d "," -f 2 | tr -d ")" | tr -d "[" | tr -d "]" | tr -d " " | sed "s/>=/ /g")
echo "$configureac_list" | \
{ return_error=0
while read -r dep ver; do