Empaquetage à partir des hooks ok

This commit is contained in:
2015-08-05 15:49:04 +02:00
parent 5b0882ce7a
commit 0861421561
8 changed files with 104 additions and 151 deletions

View File

@ -7,11 +7,6 @@ if [ -f debian/changelog ] || [ ! -d .git ]; then
exit
fi
if [ -z $(which git) ]; then
info "Installing Git..."
apt-get install --yes --no-install-recommends git-core
fi
# Get commits log as changelog
logs=$(git log --pretty=format:"%an - %h : %s" | sed 's/"/\\"/g')
@ -27,9 +22,9 @@ urgency=$(get_opt urgency low)
commit_count=$(git rev-list --count --first-parent HEAD)
current_commit=$(git log -n 1 --pretty=format:"%h")
version_suffix=${commit_count}-${current_commit}
version_suffix=${commit_count}~${current_commit}
echo "${project_name} (${version}) ${distribution}; urgency=${urgency}" > debian/changelog
echo "${project_name} (${version}.tamarin${version_suffix}) ${distribution}; urgency=${urgency}" > debian/changelog
echo >> debian/changelog