diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-deb-package | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package index 4d73daf..17ede71 100755 --- a/bin/build-deb-package +++ b/bin/build-deb-package @@ -117,6 +117,8 @@ prepare_workspace() { git fetch origin pristine-tar:pristine-tar || true git clean -df fi + + GIT_OBJECT_ID=`git show-ref -s heads/master` cd "$PROJECT_DIR" # by default we build for all current debian versions @@ -225,7 +227,11 @@ build_packages() { } # modify changelog for this build - dch --distribution $VERSION --force-distribution -l "+$l_CODENAME~$COMPONENT$DATE~$GITREV~build" "Auto-built $l_DIST $l_CODENAME package for $REPOS_SERVER repository." + if [ "$COMPONENT" != "$COMPONENT_NIGHTLY" ]; then + dch --distribution $VERSION --force-distribution -l "+git$DATE.$GITREV+$l_CODENAME.$COMPONENT." "Auto-built $l_DIST $l_CODENAME package for $REPOS_SERVER repository (Git commit: $GIT_OBJECT_ID)." + else + dch --distribution $VERSION --force-distribution -l "~git$DATE.$GITREV+$l_CODENAME.$COMPONENT." "Development-Snapshot!!! Auto-built $l_DIST $l_CODENAME package for $REPOS_SERVER repository (Git commit: $GIT_OBJECT_ID)." + fi mkdir -p $PKGDIST/$l_DIST/$l_CODENAME/{amd64,i386} OTHERMIRROR="" if [ "x$COMPONENT" = "x$COMPONENT_NIGHTLY" ]; then |