Commit 54cb95f2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add GSSETRELEASE var support and skip add changelog if rel get from

external (rpmrb)
parent 72ee11d7
...@@ -201,9 +201,9 @@ do ...@@ -201,9 +201,9 @@ do
CURVER=$(get_version $i) CURVER=$(get_version $i)
set_version $i $GSSETVERSION set_version $i $GSSETVERSION
if [ "$CURVER" != "$GSSETVERSION" ] ; then if [ "$CURVER" != "$GSSETVERSION" ] ; then
REL=alt1 [ -n "$GSSETRELEASE" ] && GSSKIPADDCHANGELOG=1 || GSSETRELEASE=alt1
set_release $i $REL set_release $i $GSSETRELEASE
echo "Set new $GSSETVERSION-$REL version for $i" echo "Set new $GSSETVERSION-$GSSETRELEASE version for $i"
else else
echo "Version $GSSETVERSION already set" echo "Version $GSSETVERSION already set"
fi fi
...@@ -234,9 +234,11 @@ do ...@@ -234,9 +234,11 @@ do
done done
# Write changelog if all done if [ -z "$GSSKIPADDCHANGELOG" ] ; then
CURVER=$(get_version $i) # Write changelog if all done
add_changelog_helper "- new version ($CURVER)" $i || echog "Changelog entry for $CURVER already exists" CURVERREL=$(get_version $i)-$(get_release $i)
add_changelog_helper "- new version ($CURVER)" $i || echog "Changelog entry for $CURVERREL already exists"
fi
done done
exit 0 exit 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment