[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible openwrt: preserve banner as build_dir gets removed to free memory
Holger Levsen
holger at moszumanska.debian.org
Sat Jun 13 12:42:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit ef3e06c32c2300d88deca0023ea27ae5cda1af8c
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Jun 13 14:40:40 2015 +0200
reproducible openwrt: preserve banner as build_dir gets removed to free memory
---
bin/reproducible_openwrt.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 2c42617..74d739d 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -210,6 +210,9 @@ for i in gcc binutils bzip2 flex python perl make findutils grep diffutils unzip
echo " </td></tr>" >> $TOOLCHAIN_HTML
done
echo "</table>" >> $TOOLCHAIN_HTML
+# get banner
+BANNER_HTML=$(mktemp)
+find build_dir/ -name banner | grep etc/banner|head -1 >> $BANNER_HTML
# clean up builddir to save space on tmpfs
rm -r $TMPBUILDDIR/openwrt
@@ -305,7 +308,7 @@ cat > $PAGE <<- EOF
<p><center>
<code>
EOF
-cat $(find openwrt/build_dir/ -name banner | grep etc/banner|head -1) >> $PAGE
+cat $BANNER_HTML >> $PAGE
write_page " </code></center></p>"
write_page " </div><div id=\"main-content\">"
write_page " <h1>Reproducible OpenWRT - <em>reproducible</em> wireless freedom$MAGIC_SIGN</h1>"
@@ -323,7 +326,7 @@ cat $TOOLCHAIN_HTML >> $PAGE
write_page " </div>"
write_page_footer OpenWRT
publish_page
-rm -f $DBD_HTML $TOOLCHAIN_HTML
+rm -f $DBD_HTML $TOOLCHAIN_HTML $BANNER_HTML
# the end
calculate_build_duration
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list