view more/tweak.sh @ 1786:0787ceb820bf draft 1.4.2

When x86-64 switched on NPTL in uClibc, distcc broke, and it turns out fully native compiles under qemu never worked due to qemu not quite emulating floating point right and confusing the perl build with zero not comparing equal to zero. As long as it's broken anyway, switch it over to musl and fix it up on that side. It's no longer worth trying to fix anything broken in uClibc, the project is dead. (I'm aware of uClibc-ng, and am treating it exactly the same way I treated the ecommstation reboot of OS/2.)
author Rob Landley <rob@landley.net>
date Fri, 11 Sep 2015 13:25:14 -0500
parents 10b64f52ad20
children d461b345c3c9
line wrap: on
line source

#!/bin/bash

# Rerun 

if [ $# -lt 2 ]
then
  echo "usage: more/tweak.sh ARCH STAGE COMMAND..." >&1
  exit 1
fi

[ ! -e "$2".sh ] && echo "No stage $2" >&2 && exit 1
ARCH="$1"
STAGE="$2"
[ "$STAGE" == "native-compiler" ] &&
   STUFF='STAGE_DIR=$STAGE_DIR/usr HOST_ARCH=$ARCH'
shift
shift

NO_CLEANUP=temp STAGE_NAME="$STAGE" more/test.sh "$ARCH" \
  $STUFF "$@" ";create_stage_tarball"
NO_CLEANUP=temp AFTER="$STAGE" ./build.sh "$ARCH" "$STAGE"