File: compile.sh

package info (click to toggle)
cameleon 1.9.13-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,224 kB
  • ctags: 4,677
  • sloc: ml: 34,648; xml: 2,826; sh: 1,409; makefile: 1,291; sql: 60; perl: 20
file content (11 lines) | stat: -rwxr-xr-x 300 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/zsh

while true; do
  bad_files=$(make ${1:-work} 2>&1 | utils/filter.pl; return $pipestatus[0])
  r=$?
  if [ "$bad_files" = "" ]; then exit $r; fi
  echo $bad_files
  f1=$(echo "$bad_files" | awk '{print $1}')
  f2=$(echo "$bad_files" | awk '{print $2}')
  (cd src; rm -f "$f1" "$f2")
done