summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/makefile b/makefile
index 7071d5e..6219405 100644
--- a/makefile
+++ b/makefile
@@ -2,8 +2,10 @@ none:
@echo make verify-versions
verify-versions:
+ @echo check pom.xml against setup.py and types.yaml files
@for i in */pom.xml; do \
p=$$(dirname $$i); \
+ echo Working on $$i; \
v=$$(grep "<version>" $$i | sed 2q | tail -n 1 | sed -e 's!</\?version>!!g' -e 's/-SNAPSHOT//' -e 's/[[:space:]]//g'); \
if grep 'version[[:space:]]*=[[:space:]]*["'"']$$v['"'"]' $$p/setup.py > /dev/null; then \
echo "$$i version $$v verified in $$p/setup.py"; \
@@ -13,6 +15,18 @@ verify-versions:
echo "$$i version $$v not found in $$p/setup.py. Instead found the above version."; \
exit 1 ; \
fi; \
+ if [ -f "$$p"/*types.yaml ]; then \
+ if grep "package_version:[[:space:]]*$$v" "$$p"/*types.yaml > /dev/null 2>&1; then \
+ echo "$$i version $$v verified in" "$$p"/*types.yaml; \
+ else \
+ grep -n "<version>" $$i /dev/null | sed 2q | tail -n 1; \
+ grep -n "package_version:" "$$p"/*types.yaml /dev/null; \
+ exit 1 ; \
+ fi; \
+ else \
+ echo "No types file found in $$p"; \
+ fi; \
+ echo; \
done
@pomv=$$(grep "<version>" pom.xml | sed 2q | tail -n 1 | sed -e 's!</\?version>!!g' -e 's/[[:space:]]//g'); \
for i in */pom.xml; do \