diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-11-28 09:11:22 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-11-28 09:11:22 +0100 |
commit | 844888d6da7097ece222b3d57052e52dd1f73049 (patch) | |
tree | f1899bf9c2743aeeddb71a087d008320730813d6 /bin/build-deb-package | |
parent | f292fb5a248b2eacc3cd716a1740aa9ce9480384 (diff) | |
download | buildscripts-844888d6da7097ece222b3d57052e52dd1f73049.tar.gz buildscripts-844888d6da7097ece222b3d57052e52dd1f73049.tar.bz2 buildscripts-844888d6da7097ece222b3d57052e52dd1f73049.zip |
change version scheme of X2Go auto-built packages
Diffstat (limited to 'bin/build-deb-package')
-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 |