diff options
author | Hansen, Tony (th1395) <th1395@att.com> | 2020-06-08 16:20:49 +0000 |
---|---|---|
committer | Hansen, Tony (th1395) <th1395@att.com> | 2020-06-08 16:21:56 +0000 |
commit | 96fb7b13783e4f9958923c4b59d52dc9ff781933 (patch) | |
tree | 36f9836638d44bf814351bc8aa516ae96aaa9d20 /makefile | |
parent | 3313bf1f2aaee934ed094cd5cb92ddd54f99508e (diff) |
fix more type version issues
Change-Id: I321407dcf08cb37d8ce8270a3458c50ec489e08e
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2207
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -15,16 +15,20 @@ 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; \ + typefiles=$$( grep -l "package_version[[:space:]]*:" $$p/* 2>/dev/null ); \ + if [ -z "$$typefiles" ]; then \ + echo "No type files found in $$p"; \ + exit 1 ; \ else \ - echo "No types file found in $$p"; \ + for typefile in $$typefiles; do \ + if grep "package_version:[[:space:]]*$$v" "$$typefile" > /dev/null 2>&1; then \ + echo "$$i version $$v verified in" "$$typefile"; \ + else \ + grep -n "<version>" $$i /dev/null | sed 2q | tail -n 1; \ + grep -n "package_version:" "$$typefile" /dev/null; \ + exit 1 ; \ + fi; \ + done; \ fi; \ echo; \ done |