File: cmd_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 (17 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh

set -e

while read fn; do # we obtain .c files from stdin
    log1=${fn%%.c}.log1
    log2=${fn%%.c}.log2
    obj=${fn%%.c}.o

    if ${CC} ${CPPFLAGS} ${CFLAGS} -c -o $obj ${fn} > $log1 2> $log2; then
	echo "done: $fn"
    else
	echo "failed: $fn"
    fi

    echo '' # end of job
done