#!/bin/bash

ro_jobs=""
ro_hosts=/opt/netsurf/arm-unknown-riscos/env/ro-hosts

if [ -f $ro_hosts ] && [ x"$RO_DIST" == x"yes" ] ; then
  export DISTCC_HOSTS=$(cat $ro_hosts)
  ro_jobs="-j$(wc -w < $ro_hosts | tr -s " " | cut -f 2 -d ' ')"
fi

/opt/netsurf/arm-unknown-riscos/env/ro-path make $ro_jobs "$@"
