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
changes/00/16700/1
Pau Espin 3 years ago
parent c6a8697800
commit 5d39e05bf4
  1. 2
      osmo-release.sh

@ -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

Loading…
Cancel
Save