Empaquetage à partir des hooks ok
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user