File: run_cc_wrapper

package info (click to toggle)
paexec 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 904 kB
  • sloc: sh: 3,435; ansic: 1,959; makefile: 174; pascal: 19
file content (11 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/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