#!/usr/bin/env sh

# here we compile .c sources in parallel on two hosts: localhost and chen
# a la distcc
paexec -c "env CC=gcc CFLAGS=-O2 `pwd`/cmd" \
             -n 'host1 host2' \
             -t '/usr/bin/ssh -x' <<EOF
$PWD/func1.c
$PWD/func2.c
$PWD/func3.c
EOF
