diff options
author | Andrei Pavel <andrei@isc.org> | 2021-03-26 12:51:56 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-03-29 21:58:55 +0200 |
commit | fa335d1dd3c878a443523b97eb78d88808e4acf1 (patch) | |
tree | 948a562c0fa4c3fbe5460a5d52e2f40e5c65d6f8 | |
parent | [#1772] regenerate parsers (diff) | |
download | kea-fa335d1dd3c878a443523b97eb78d88808e4acf1.tar.xz kea-fa335d1dd3c878a443523b97eb78d88808e4acf1.zip |
[#1772] fix tools/bump-lib-versions.sh
-rwxr-xr-x | tools/bump-lib-versions.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/bump-lib-versions.sh b/tools/bump-lib-versions.sh index 2b76eeb0a9..23cddee17d 100755 --- a/tools/bump-lib-versions.sh +++ b/tools/bump-lib-versions.sh @@ -137,7 +137,12 @@ fi sed -i "s/^\/\/ Version .* of the hooks framework, set for Kea .*/\/\/ Version ${new_hooks_version} of the hooks framework, set for $(echo "${new_release_tag}" | tr '-' ' ')/" "src/lib/hooks/hooks.h" sed -i "s/KEA_HOOKS_VERSION.*/KEA_HOOKS_VERSION = ${new_hooks_version};/" "src/lib/hooks/hooks.h" -for lib in $(git diff "${old_release_tag}" --name-only src/lib/ | cut -d '/' -f 3 | sort -uV); do +for lib in $(git diff --name-only "${old_release_tag}" src/lib | cut -d '/' -f 3 | sort -uV); do + # Skip over files and anything that is not a directory. + if test ! -d "src/lib/${lib}"; then + continue + fi + old_version=$(grep '\-version\-info' "src/lib/${lib}/Makefile.am" | tr -s ' ' | rev | cut -d ' ' -f 1 | rev | cut -d ':' -f 1) new_version=$((old_version + increment)) if ! ${is_new_tag_stable_release}; then |