From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/releng:master commit in: tools-uclibc/
Date: Fri, 14 Jun 2013 13:28:23 +0000 (UTC) [thread overview]
Message-ID: <1371216545.58d7f6a72b92cf2bf4be5811dbf40a84055b041e.blueness@gentoo> (raw)
commit: 58d7f6a72b92cf2bf4be5811dbf40a84055b041e
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 14 13:29:05 2013 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Jun 14 13:29:05 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=58d7f6a7
tools-uclibc: remove useless debugging code
---
tools-uclibc/fixup.sh | 29 --------------------------
tools-uclibc/run-armv7a.sh | 48 ++++++++------------------------------------
tools-uclibc/run-mips32r2.sh | 48 ++++++++------------------------------------
tools-uclibc/run-mipsel3.sh | 48 ++++++++------------------------------------
tools-uclibc/run.sh | 48 ++++++++------------------------------------
5 files changed, 32 insertions(+), 189 deletions(-)
diff --git a/tools-uclibc/fixup.sh b/tools-uclibc/fixup.sh
deleted file mode 100755
index 98bc241..0000000
--- a/tools-uclibc/fixup.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-# This just fixes up the symbolic links
-# to the latest stage{1,2,3} tarballs
-
-mydate=$1
-mypwd=/var/tmp/catalyst/builds
-
-find ${mypwd} -type f -size 0 -exec rm {} +
-find -L ${mypwd} -type l -exec rm {} +
-
-for arch in amd64 i686; do
- for flavor in hardened vanilla; do
- for s in 1 2 3; do
- file=stage${s}-${arch}-uclibc-${flavor}-${mydate}.tar.bz2
- link=stage${s}-${arch}-uclibc-${flavor}.tar.bz2
- cd "${mypwd}/${flavor}/${arch}"
- if [[ -f ${file} ]]; then
- ln -sf ${file} ${link}
- else
- echo "!!! ${file} doesn't exist!"
- echo "!!! make sure \${mydate} is right!"
- exit 1
- fi
- done
- done
-done
-
-tree ${mypwd}
diff --git a/tools-uclibc/run-armv7a.sh b/tools-uclibc/run-armv7a.sh
index 48e89ea..e5152a5 100755
--- a/tools-uclibc/run-armv7a.sh
+++ b/tools-uclibc/run-armv7a.sh
@@ -1,12 +1,5 @@
#!/bin/bash
-#
-# Usage: ./run-armv7a.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`
@@ -54,7 +47,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}"
@@ -69,20 +61,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}"
@@ -107,17 +90,9 @@ do_stages() {
#
main() {
- local pretend=$1
-
>zzz.log
- 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 armv7a; do
for flavor in hardened vanilla; do
@@ -127,21 +102,14 @@ main() {
for arch in armv7a; 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 &
diff --git a/tools-uclibc/run-mips32r2.sh b/tools-uclibc/run-mips32r2.sh
index e549f19..446772b 100755
--- a/tools-uclibc/run-mips32r2.sh
+++ b/tools-uclibc/run-mips32r2.sh
@@ -1,12 +1,5 @@
#!/bin/bash
-#
-# Usage: ./run-mips32r2.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`
@@ -53,7 +46,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}"
@@ -68,20 +60,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}"
@@ -106,17 +89,9 @@ do_stages() {
#
main() {
- local pretend=$1
-
>zzz.log
- 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 mips32r2; do
for flavor in hardened vanilla; do
@@ -126,21 +101,14 @@ main() {
for arch in mips32r2; 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 &
diff --git a/tools-uclibc/run-mipsel3.sh b/tools-uclibc/run-mipsel3.sh
index d9ef241..87fc1b7 100755
--- a/tools-uclibc/run-mipsel3.sh
+++ b/tools-uclibc/run-mipsel3.sh
@@ -1,12 +1,5 @@
#!/bin/bash
-#
-# Usage: ./run-mipsel3.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`
@@ -53,7 +46,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}"
@@ -68,20 +60,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}"
@@ -106,17 +89,9 @@ do_stages() {
#
main() {
- local pretend=$1
-
>zzz.log
- 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 mipsel3; do
for flavor in hardened vanilla; do
@@ -126,21 +101,14 @@ main() {
for arch in mipsel3; 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 &
diff --git a/tools-uclibc/run.sh b/tools-uclibc/run.sh
index a896e66..45e0266 100755
--- a/tools-uclibc/run.sh
+++ b/tools-uclibc/run.sh
@@ -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 &
next reply other threads:[~2013-06-14 13:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 13:28 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-02 16:25 [gentoo-commits] proj/releng:master commit in: tools-uclibc/ Anthony G. Basile
2017-06-07 10:25 Anthony G. Basile
2014-08-18 21:59 Robin H. Johnson
2014-08-18 21:59 Robin H. Johnson
2014-08-17 12:16 Anthony G. Basile
2014-08-12 15:04 Anthony G. Basile
2014-06-12 15:50 Anthony G. Basile
2014-06-12 15:30 Anthony G. Basile
2013-07-15 21:25 Anthony G. Basile
2013-05-09 21:41 Anthony G. Basile
2013-05-09 21:11 Anthony G. Basile
2013-03-27 23:23 Anthony G. Basile
2013-03-10 14:57 Anthony G. Basile
2013-03-10 14:50 Anthony G. Basile
2013-02-03 14:46 Anthony G. Basile
2013-02-03 14:45 Anthony G. Basile
2012-12-31 9:59 Anthony G. Basile
2012-12-29 3:56 Anthony G. Basile
2012-12-28 18:08 Anthony G. Basile
2012-12-28 15:50 Anthony G. Basile
2012-11-15 20:33 Anthony G. Basile
2012-11-14 22:47 Anthony G. Basile
2012-11-01 2:41 Anthony G. Basile
2012-10-27 22:37 Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1371216545.58d7f6a72b92cf2bf4be5811dbf40a84055b041e.blueness@gentoo \
--to=blueness@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox