#!/bin/bash case "$( uname -m )" in # The i486 here just means "x86". i?86) export LOCALARCH=i486 ;; *) export LOCALARCH=$( uname -m ) ;; esac echo "Building for host architecture: $LOCALARCH" ./x-build 2>&1 | tee -a $PWD/${LOCALARCH}_build.log bzip2 -9vf $PWD/${LOCALARCH}_build.log