提交 b1682194 authored 作者: Travis Cross's avatar Travis Cross

Harmonize debian nightly version with print_git_revision

Debian nightlies created with debian/util.sh now have the version set
in the same format as Makefile.am produces.  Unlike Makefile.am,
however, we show the orig packaging date rather than the date of the
latest commit, as the latter could legitimately regress and we need
this to always increment.
上级 ad53499b
...@@ -132,6 +132,17 @@ check_repo_clean () { ...@@ -132,6 +132,17 @@ check_repo_clean () {
|| err "untracked files or build products present" || err "untracked files or build products present"
} }
get_last_release_ver () {
grep -m1 -e '^AC_INIT' configure.in \
| cut -d, -f2 \
| sed -e 's/\[//' -e 's/\]//' -e 's/ //g'
}
get_nightly_version () {
local commit="$(git rev-list -n1 --abbrev=10 --abbrev-commit HEAD)"
echo "$(get_last_release_ver)+git~$(date +%Y%m%dT%H%M%SZ)~$commit"
}
create_orig () { create_orig () {
{ {
set -e set -e
...@@ -147,7 +158,7 @@ create_orig () { ...@@ -147,7 +158,7 @@ create_orig () {
done done
shift $(($OPTIND-1)) shift $(($OPTIND-1))
[ -z "$uver" ] || [ "$uver" = "nightly" ] \ [ -z "$uver" ] || [ "$uver" = "nightly" ] \
&& uver="$(cat build/next-release.txt)-n$(date +%Y%m%dT%H%M%SZ)" && uver="$(get_nightly_version)"
local treeish="$1" dver="$(mk_dver "$uver")" local treeish="$1" dver="$(mk_dver "$uver")"
local orig="../freeswitch_$dver.orig.tar.xz" local orig="../freeswitch_$dver.orig.tar.xz"
[ -n "$treeish" ] || treeish="HEAD" [ -n "$treeish" ] || treeish="HEAD"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论