#!/bin/sh set -e source ./common export PATH="$prefix_dir/bin:${PATH:+:${PATH}}" mkdir -p build/newlib-$newlib_ver cd build/newlib-$newlib_ver echo "Configuring newlib-${newlib_ver}" ../../unpacked/newlib-$newlib_ver/configure --prefix=$prefix_dir --target=$target >configure.log 2>&1 if [ ! $? ]; then less configure.log; exit; fi echo "Building newlib-$newlib_ver" make -j$jobs >build.log 2>&1 if [ ! $? ]; then less build.log; exit; fi echo "Installing newlib-$newlib_ver" make install >install.log 2>&1 if [ ! $? ]; then less install.log; exit; fi echo "Done with newlib-$newlib_ver"