Fixes changelog creation starting on a pkg tag
This commit is contained in:
parent
fdba555beb
commit
97fd00a3c7
|
@ -12,7 +12,7 @@ pkg_tags="$(git for-each-ref --format '%(refname)' refs/tags | tac)"
|
||||||
|
|
||||||
# Set starting commit
|
# Set starting commit
|
||||||
ceiling_commit=$(git describe --match "build/*" --abbrev=0 2>/dev/null)
|
ceiling_commit=$(git describe --match "build/*" --abbrev=0 2>/dev/null)
|
||||||
if [ -z "ceiling_commit" ]
|
if [ -z "$ceiling_commit" ]
|
||||||
then
|
then
|
||||||
ceiling_commit="HEAD"
|
ceiling_commit="HEAD"
|
||||||
fi
|
fi
|
||||||
|
@ -220,14 +220,13 @@ function next_version {
|
||||||
function gen_changelog_entry {
|
function gen_changelog_entry {
|
||||||
ceiling_commit=$1
|
ceiling_commit=$1
|
||||||
floor_commit="$(next_step "${ceiling_commit}")"
|
floor_commit="$(next_step "${ceiling_commit}")"
|
||||||
|
|
||||||
if [ "$(get_hash ${ceiling_commit})" = "$(get_hash ${floor_commit})" ]
|
if [ "$(get_hash ${ceiling_commit})" = "$(get_hash ${floor_commit})" ]
|
||||||
then
|
then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if on_pkg_tag $ceiling_commit
|
if on_pkg_tag $ceiling_commit
|
||||||
then
|
then
|
||||||
|
ceiling_commit="$(get_previous_pkg_tag $ceiling_commit)"
|
||||||
version="$(get_upstream_version_from_tag $ceiling_commit)-$(get_package_version_from_tag $ceiling_commit)"
|
version="$(get_upstream_version_from_tag $ceiling_commit)-$(get_package_version_from_tag $ceiling_commit)"
|
||||||
distribution="$(get_distribution_from_tag $ceiling_commit)"
|
distribution="$(get_distribution_from_tag $ceiling_commit)"
|
||||||
else
|
else
|
||||||
|
@ -235,13 +234,11 @@ function gen_changelog_entry {
|
||||||
version=$(next_version $ceiling_commit)
|
version=$(next_version $ceiling_commit)
|
||||||
distribution="UNRELEASED"
|
distribution="UNRELEASED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#current_release="$(git describe --abbrev=0 --always --match='release/*' $ceiling_commit)"
|
#current_release="$(git describe --abbrev=0 --always --match='release/*' $ceiling_commit)"
|
||||||
tamarin_info "Création de l’entrée de changelog entre ${ceiling_commit} et ${floor_commit}"
|
tamarin_info "Création de l’entrée de changelog entre ${ceiling_commit} et ${floor_commit}"
|
||||||
|
|
||||||
maintainer="$(packager_from_commit ${ceiling_commit})"
|
maintainer="$(packager_from_commit ${ceiling_commit})"
|
||||||
package_date="$(date_from_commit ${ceiling_commit})"
|
package_date="$(date_from_commit ${ceiling_commit})"
|
||||||
|
|
||||||
version=${version/_/-}
|
version=${version/_/-}
|
||||||
changelog_entry="${project_name} (${version}) ${distribution}; urgency=${urgency}"
|
changelog_entry="${project_name} (${version}) ${distribution}; urgency=${urgency}"
|
||||||
echo "$changelog_entry" >> debian/changelog
|
echo "$changelog_entry" >> debian/changelog
|
||||||
|
|
Loading…
Reference in New Issue