diff sources/native-builds/gentoo-bootstrap/build/zlib-build @ 1252:ba951c11fb48

Refactor the gentoo bootstrap build some more. Add "build" and "files" subdirectories, split each package build into a separate file, break out reusable shell functions into functions.sh. Flow control now init chrooting into run-build-stages.sh calling the individual package scripts.
author Rob Landley <rob@landley.net>
date Sat, 25 Sep 2010 13:40:04 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/native-builds/gentoo-bootstrap/build/zlib-build	Sat Sep 25 13:40:04 2010 -0500
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+. /mnt/functions.sh
+
+set_titlebar "zlib" && cp -sfR /mnt/zlib zlib && cd zlib &&
+
+# 1.2.5 accidentally shipped the Makefile, then configure tries to
+# modify it in place.
+rm Makefile && 
+./configure --prefix=/usr &&
+make -j $CPUS &&
+make install &&
+
+cd .. && rm -rf zlib || exit 1