tools-uclibc: remove useless debugging code

This commit is contained in:
Anthony G. Basile 2013-06-14 09:29:05 -04:00
parent 2c293090c3
commit 58d7f6a72b
5 changed files with 32 additions and 189 deletions

View file

@ -1,12 +1,5 @@
#!/bin/bash
#
# Usage: ./run.sh <mode>
# where
# <mode> = "", it will actually do the runs
# <mode> = "test", it will just pretend
#
source /etc/catalyst/catalyst.conf
mydate=`date +%Y%m%d`
@ -64,7 +57,6 @@ EOF
do_stages() {
local arch=$1
local flavor=$2
local pretend=$3
for s in 1 2 3; do
local tgpath="${storedir}/builds/${flavor}/${arch}"
@ -79,20 +71,11 @@ do_stages() {
return 1
fi
if [[ "x${pretend}" != "xtest" ]]; then
banner ${s} ${arch} ${flavor}
catalyst -f stage${s}-${arch}-uclibc-${flavor}.conf \
| tee -a zzz.log \
> stage${s}-${arch}-uclibc-${flavor}.log \
2> stage${s}-${arch}-uclibc-${flavor}.err
else
touch stage${s}-${arch}-uclibc-${flavor}.log
touch stage${s}-${arch}-uclibc-${flavor}.err
touch "${tgpath}/${target}"
echo "PRETEND: catalyst -f stage${s}-${arch}-uclibc-${flavor}.conf \ "
echo "PRETEND: > stage${s}-${arch}-uclibc-${flavor}.log \ "
echo "PRETEND: 2> stage${s}-${arch}-uclibc-${flavor}.err"
fi
banner ${s} ${arch} ${flavor}
catalyst -f stage${s}-${arch}-uclibc-${flavor}.conf \
| tee -a zzz.log \
> stage${s}-${arch}-uclibc-${flavor}.log \
2> stage${s}-${arch}-uclibc-${flavor}.err
if [[ -f "${tgpath}/${target}" ]]; then
rm -f "${tgpath}/${tglink}"
@ -117,19 +100,11 @@ do_stages() {
#
main() {
local pretend=$1
>zzz.log
undo_grsec
if [[ "x${pretend}" != "xtest" ]]; then
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
else
>snapshot.log
>snapshot.err
echo "PRETEND: catalyst -s current > snapshot.log 2> snapshot.err"
fi
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
for arch in amd64 i686; do
for flavor in hardened vanilla; do
@ -139,21 +114,14 @@ main() {
for arch in amd64 i686; do
for flavor in hardened vanilla; do
do_stages ${arch} ${flavor} ${pretend}
do_stages ${arch} ${flavor}
ret=$?
if [[ $? == 1 ]]; then
echo "FAILURE at ${arch} ${flavor} ${pretend} " | tee zzz.log
echo "FAILURE at ${arch} ${flavor}" | tee zzz.log
return 1
fi
done
done
if [[ "x${pretend}" == "xtest" ]]; then
tree /var/tmp/catalyst/builds
echo
echo "!!! Run fixup.sh to clean up!"
echo
fi
}
main $1 &