From ef3e06c32c2300d88deca0023ea27ae5cda1af8c Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Sat, 13 Jun 2015 14:40:40 +0200
Subject: reproducible openwrt: preserve banner as build_dir gets removed to
free memory
---
bin/reproducible_openwrt.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'bin')
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 2c42617d..74d739d5 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 " " >> $TOOLCHAIN_HTML
done
echo "" >> $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
EOF
-cat $(find openwrt/build_dir/ -name banner | grep etc/banner|head -1) >> $PAGE
+cat $BANNER_HTML >> $PAGE
write_page "
"
write_page " "
write_page "
Reproducible OpenWRT - reproducible wireless freedom$MAGIC_SIGN
"
@@ -323,7 +326,7 @@ cat $TOOLCHAIN_HTML >> $PAGE
write_page " "
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
--
cgit v1.2.3-70-g09d2