WIP génération tarball sources
This commit is contained in:
parent
0d5e391e97
commit
5bd63ab0ef
@ -20,7 +20,7 @@ then
|
||||
else
|
||||
info "DEBUG DEBUG DEBUG "
|
||||
tagbranch="build-tag-${BUILD_TAG}"
|
||||
git checkout -b ${tagbranch}
|
||||
git checkout -b ${tagbranch}
|
||||
set_opt "tag_branch" "${tag_branch}"
|
||||
tags="${BUILD_TAG}"
|
||||
fi
|
||||
@ -51,7 +51,11 @@ do
|
||||
current_commit=$(git log -n 1 --pretty=format:"%h")
|
||||
version_suffix=${commit_count}~${current_commit}
|
||||
|
||||
echo "${project_name} (${version}.tamarin${version_suffix}) ${distribution}; urgency=${urgency}" >> debian/changelog
|
||||
package_version=${version}.tamarin${version_suffix}
|
||||
# Share computed package version
|
||||
set_opt package_version ${package_version}
|
||||
|
||||
echo "${project_name} (${package_version}) ${distribution}; urgency=${urgency}" >> debian/changelog
|
||||
|
||||
echo >> debian/changelog
|
||||
|
10
hooks/01-debian/create-orig-archive-prebuild
Executable file
10
hooks/01-debian/create-orig-archive-prebuild
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "${TAMARIN_UTIL}"
|
||||
|
||||
project_name=$(get_opt project_name)
|
||||
src_tarball="../${project_name}_${package_version}.orig.tar.gz"
|
||||
|
||||
info "Creating sources tarball ${src_tarball}"
|
||||
|
||||
tar -czf "${src_tarball}" .
|
@ -15,4 +15,5 @@ move_output_to_dist "*.changes"
|
||||
move_output_to_dist "*.dsc"
|
||||
move_output_to_dist "*.tar.{bz2,gz,lzma,xz}"
|
||||
|
||||
# Configure files permissions
|
||||
chown -R ${HOST_UID}:${HOST_GID} /dist
|
@ -34,7 +34,7 @@ function build_project()
|
||||
|
||||
cd "${workspace}"
|
||||
|
||||
dpkg-buildpackage -b 2> >(error) 1> >(info)
|
||||
dpkg-buildpackage -us -uc 2> >(error) 1> >(info)
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
fatal "The build process has not completed successfuly !"
|
||||
|
Loading…
Reference in New Issue
Block a user