summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2020-05-13 18:55:54 +0000
committerHansen, Tony (th1395) <th1395@att.com>2020-06-02 20:36:06 +0000
commit7e1efe3174336fa09a56c596af55ba93d7b14a91 (patch)
treebad0fc0c5bb0a54f69e7d046008c423c507f87d6 /makefile
parent05e95de3b9736160b4229232903e86706fb782e1 (diff)
move plugins from from ccsdk to dcaegen2
copy dmaap, helm, pgaas and sshkeyshare plugins from ccsdk to dcaegen2 Change-Id: Ib257495de6c275c45f0c87a4b42ac21a2fab7979 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-2207 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'makefile')
-rw-r--r--makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..7071d5e
--- /dev/null
+++ b/makefile
@@ -0,0 +1,27 @@
+none:
+ @echo make verify-versions
+
+verify-versions:
+ @for i in */pom.xml; do \
+ p=$$(dirname $$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"; \
+ else \
+ grep -n "<version>" $$i /dev/null | sed 2q | tail -n 1; \
+ grep -n "version[[:space:]]*=" $$p/setup.py /dev/null; \
+ echo "$$i version $$v not found in $$p/setup.py. Instead found the above version."; \
+ exit 1 ; \
+ fi; \
+ 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 \
+ v=$$(grep "<version>" $$i | sed 1q | sed -e 's!</\?version>!!g' -e 's/[[:space:]]//g'); \
+ if [ "$$pomv" = "$$v" ]; then \
+ echo "pom.xml version $$pomv verified in $$i"; \
+ else \
+ grep -n "<version>" $$i /dev/null | sed 1q; \
+ echo "pom.xml version $$pomv not found in $$i. Instead found $$v"; \
+ exit 1 ; \
+ fi; \
+ done