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

debian: force build output to stderr

Because we're capturing the string return value of these functions, we
can't see any output that goes to stdout.
上级 496b9a9c
...@@ -133,6 +133,7 @@ check_repo_clean () { ...@@ -133,6 +133,7 @@ check_repo_clean () {
} }
create_orig () { create_orig () {
{
local OPTIND OPTARG local OPTIND OPTARG
local uver="" bundle_deps=false zl=9e local uver="" bundle_deps=false zl=9e
while getopts 'bnv:z:' o "$@"; do while getopts 'bnv:z:' o "$@"; do
...@@ -172,10 +173,12 @@ create_orig () { ...@@ -172,10 +173,12 @@ create_orig () {
| xz -c -${zl}v > $orig | xz -c -${zl}v > $orig
mv .gitattributes.orig .gitattributes mv .gitattributes.orig .gitattributes
git reset --hard HEAD^ && git clean -fdx git reset --hard HEAD^ && git clean -fdx
} 1>&2
echo $orig echo $orig
} }
create_dsc () { create_dsc () {
{
local distro="$(find_distro $1)" orig="$2" local distro="$(find_distro $1)" orig="$2"
local suite="$(find_suite $distro)" local suite="$(find_suite $distro)"
local orig_ver="$(echo "$orig" | sed -e 's/^.*_//' -e 's/\.orig\.tar.*$//')" local orig_ver="$(echo "$orig" | sed -e 's/^.*_//' -e 's/\.orig\.tar.*$//')"
...@@ -189,6 +192,7 @@ create_dsc () { ...@@ -189,6 +192,7 @@ create_dsc () {
dpkg-genchanges -S > ../$(dsc_base)_source.changes dpkg-genchanges -S > ../$(dsc_base)_source.changes
local dsc="../$(dsc_base).dsc" local dsc="../$(dsc_base).dsc"
git reset --hard HEAD^ && git clean -fdx git reset --hard HEAD^ && git clean -fdx
} 1>&2
echo $dsc echo $dsc
} }
...@@ -202,6 +206,7 @@ EOF ...@@ -202,6 +206,7 @@ EOF
} }
build_debs () { build_debs () {
{
local OPTIND OPTARG debug_hook=false hookdir="" local OPTIND OPTARG debug_hook=false hookdir=""
while getopts 'd' o "$@"; do while getopts 'd' o "$@"; do
case "$o" in case "$o" in
...@@ -241,6 +246,7 @@ build_debs () { ...@@ -241,6 +246,7 @@ build_debs () {
hookdir=$(pwd)/.hooks hookdir=$(pwd)/.hooks
fi fi
cow --build $dsc --hookdir "$hookdir" cow --build $dsc --hookdir "$hookdir"
} 1>&2
echo ${dsc}_${arch}.changes echo ${dsc}_${arch}.changes
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论