mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-04 04:05:15 +00:00
Adding a file extension to the package build logs
This commit is contained in:
parent
e39605dc2c
commit
24fb219fa0
16
debian/util.sh
vendored
16
debian/util.sh
vendored
@ -454,26 +454,26 @@ build_all () {
|
|||||||
dsc_opts="$dsc_opts -f${modtmp}"; fi
|
dsc_opts="$dsc_opts -f${modtmp}"; fi
|
||||||
[ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)"
|
[ -n "$orig" ] || orig="$(create_orig $orig_opts HEAD | tail -n1)"
|
||||||
mkdir -p ../log
|
mkdir -p ../log
|
||||||
> ../log/changes
|
> ../log/changes.txt
|
||||||
echo; echo; echo; echo
|
echo; echo; echo; echo
|
||||||
trap 'echo "Killing children...">&2; for x in $(jobs -p); do kill $x; done' EXIT
|
trap 'echo "Killing children...">&2; for x in $(jobs -p); do kill $x; done' EXIT
|
||||||
if [ "${orig:0:2}" = ".." ]; then
|
if [ "${orig:0:2}" = ".." ]; then
|
||||||
echo "true" > ../log/builds-ok
|
echo "true" > ../log/builds-ok.txt
|
||||||
for distro in $distros; do
|
for distro in $distros; do
|
||||||
echo "Creating $distro dsc..." >&2
|
echo "Creating $distro dsc..." >&2
|
||||||
local dsc="$(create_dsc $dsc_opts $distro $orig 2>../log/$distro | tail -n1)"
|
local dsc="$(create_dsc $dsc_opts $distro $orig 2>../log/$distro.txt | tail -n1)"
|
||||||
echo "Done creating $distro dsc." >&2
|
echo "Done creating $distro dsc." >&2
|
||||||
if [ "${dsc:0:2}" = ".." ]; then
|
if [ "${dsc:0:2}" = ".." ]; then
|
||||||
local lopts="-b"
|
local lopts="-b"
|
||||||
for arch in $archs; do
|
for arch in $archs; do
|
||||||
{
|
{
|
||||||
echo "Building $distro-$arch debs..." >&2
|
echo "Building $distro-$arch debs..." >&2
|
||||||
local changes="$(build_debs $lopts $deb_opts $distro $dsc $arch 2>../log/$distro-$arch | tail -n1)"
|
local changes="$(build_debs $lopts $deb_opts $distro $dsc $arch 2>../log/$distro-$arch.txt | tail -n1)"
|
||||||
echo "Done building $distro-$arch debs." >&2
|
echo "Done building $distro-$arch debs." >&2
|
||||||
if [ "${changes:0:2}" = ".." ]; then
|
if [ "${changes:0:2}" = ".." ]; then
|
||||||
echo "$changes" >> ../log/changes
|
echo "$changes" >> ../log/changes.txt
|
||||||
else
|
else
|
||||||
echo "false" > ../log/builds-ok
|
echo "false" > ../log/builds-ok.txt
|
||||||
fi
|
fi
|
||||||
} &
|
} &
|
||||||
$par || wait
|
$par || wait
|
||||||
@ -485,8 +485,8 @@ build_all () {
|
|||||||
fi
|
fi
|
||||||
[ -z "$modlist" ] || rm -f $modtmp
|
[ -z "$modlist" ] || rm -f $modtmp
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
cat ../log/changes
|
cat ../log/changes.txt
|
||||||
test "$(cat ../log/builds-ok)" = true || exit 1
|
test "$(cat ../log/builds-ok.txt)" = true || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user