Marcel Telka
2023-11-16 c0f9e77af87216ab7aab8db0f30c7cc7bb51cbc1
tools/perl-integrate-module: HUMAN_VERSION change with unchanged COMPONENT_VERSION is update too

1 files modified
9 ■■■■■ changed files
tools/perl-integrate-module 9 ●●●●● patch | view | raw | blame | history
tools/perl-integrate-module
@@ -131,13 +131,11 @@
# Is this new module, or just a rebuild?
NEW=1
REBUILD=0
PREV_VER=
PREV_HVER=
PREV_REV=0
if git ls-files --error-unmatch Makefile > /dev/null 2>&1 ; then
    NEW=0
    REBUILD=1
    PREV_VER=$($GMAKE print-value-COMPONENT_VERSION 2>/dev/null)
    (($? != 0)) && printf "FATAL: 'gmake print-value-COMPONENT_VERSION' failed!\n" >&2 && exit 1
    PREV_REV=$($GMAKE print-value-COMPONENT_REVISION 2>/dev/null)
@@ -241,7 +239,7 @@
# Remove COMPONENT_REVISION if not needed
COMPONENT_VERSION=$($GMAKE print-value-COMPONENT_VERSION)
[[ "$PREV_VER" != "$COMPONENT_VERSION" ]] && REBUILD=0 && sed -i -e '/^COMPONENT_REVISION/d' Makefile
[[ "$PREV_VER" != "$COMPONENT_VERSION" ]] && sed -i -e '/^COMPONENT_REVISION/d' Makefile
git add Makefile
# Calculate sham256 sum for source package
@@ -560,9 +558,8 @@
if ((NEW)) ; then
    MSG="Add $MODULE Perl module"
else
    if ((REBUILD == 0)) ; then
        [[ "$PREV_HVER" != "$VERSION" ]] && MSG="update to $VERSION" || MSG="change version format"
    fi
    [[ "$PREV_VER" != "$COMPONENT_VERSION" ]] && MSG="change version format"
    [[ "$PREV_HVER" != "$VERSION" ]] && MSG="update to $VERSION"
    REBUILDMSG=