2 @echo make verify-versions
5 @for i in */pom.xml; do \
7 v=$$(grep "<version>" $$i | sed 2q | tail -n 1 | sed -e 's!</\?version>!!g' -e 's/-SNAPSHOT//' -e 's/[[:space:]]//g'); \
8 if grep 'version[[:space:]]*=[[:space:]]*["'"']$$v['"'"]' $$p/setup.py > /dev/null; then \
9 echo "$$i version $$v verified in $$p/setup.py"; \
11 grep -n "<version>" $$i /dev/null | sed 2q | tail -n 1; \
12 grep -n "version[[:space:]]*=" $$p/setup.py /dev/null; \
13 echo "$$i version $$v not found in $$p/setup.py. Instead found the above version."; \
17 @pomv=$$(grep "<version>" pom.xml | sed 2q | tail -n 1 | sed -e 's!</\?version>!!g' -e 's/[[:space:]]//g'); \
18 for i in */pom.xml; do \
19 v=$$(grep "<version>" $$i | sed 1q | sed -e 's!</\?version>!!g' -e 's/[[:space:]]//g'); \
20 if [ "$$pomv" = "$$v" ]; then \
21 echo "pom.xml version $$pomv verified in $$i"; \
23 grep -n "<version>" $$i /dev/null | sed 1q; \
24 echo "pom.xml version $$pomv not found in $$i. Instead found $$v"; \