[packages/chromium-browser] builder script to handle local chromium builds

glen glen at pld-linux.org
Thu Feb 27 09:24:58 CET 2014


commit c3ae1530ae17348be34e1db02f48012c8293a37a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Feb 25 22:20:40 2014 +0200

    builder script to handle local chromium builds

 builderx.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
---
diff --git a/builderx.sh b/builderx.sh
new file mode 100755
index 0000000..73f85bf
--- /dev/null
+++ b/builderx.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+set -x
+
+dir=$(dirname "$0")
+dir=$(cd "$dir"; pwd)
+outdir=$dir/BUILD
+rpmdir=$dir/RPMS
+logs=$outdir/logs
+
+export CCACHE_DIR=$outdir/ccache
+export CCACHE_LOGFILE=$CCACHE_DIR/log
+export CCACHE_NLEVELS=1
+export CCACHE_HARDLINK=1
+
+install -d $outdir $rpmdir $logs
+
+# init ccache with unlimited size (it's default is 1G)
+if [ ! -d "$CCACHE_DIR" ]; then
+	ccache -M 0 -F 0
+fi
+
+# clear logfile if bigger than 2GiB
+CCACHE_LOGSIZE=$((0x7FFFFFFF))
+
+if [ -s "$CCACHE_LOGFILE" ] && [ $(stat -c %s "$CCACHE_LOGFILE") -gt $CCACHE_LOGSIZE ]; then
+	> "$CCACHE_LOGFILE"
+	ccache -z
+fi
+
+# print some stats on startup
+ccache -s
+
+log=$logs/$(date +%Y%m%d_%H%M%S)
+install -d $log
+mv $outdir/chromium-browser-*.*.*.*/src/REMOVED-*.txt $log
+rmdir $log
+
+_smp_mflags=$(rpm -E %{?_smp_mflags})
+time $dir/teeboth '' rpmbuild \
+	${_smp_mflags:+--define "_smp_mflags ${_smp_mflags}"} \
+	--define "_unpackaged_files_terminate_build 1" \
+	--define '_enable_debug_packages 0' \
+	--define "_topdir $dir" \
+	--define "_specdir $dir" \
+	--define "_sourcedir $dir" \
+	--define "_builddir $outdir" \
+	--define "_rpmdir $rpmdir" \
+	--with verbose \
+	"$@"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/f8597c6e6e223fadba458b2d8788b6b23727366e



More information about the pld-cvs-commit mailing list