summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2021-03-26 12:51:56 +0100
committerAndrei Pavel <andrei@isc.org>2021-03-29 21:58:55 +0200
commitfa335d1dd3c878a443523b97eb78d88808e4acf1 (patch)
tree948a562c0fa4c3fbe5460a5d52e2f40e5c65d6f8 /tools
parent[#1772] regenerate parsers (diff)
downloadkea-fa335d1dd3c878a443523b97eb78d88808e4acf1.tar.xz
kea-fa335d1dd3c878a443523b97eb78d88808e4acf1.zip
[#1772] fix tools/bump-lib-versions.sh
Diffstat (limited to 'tools')
-rwxr-xr-xtools/bump-lib-versions.sh7
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