view build-aux/find-files-with-tests.sh @ 20549:71e60880105a

maint: Use Octave coding convention for parenthesis in __ilu__.cc. * __ilu__.cc: Use Octave coding convention for parenthesis.cc.
author Rik <rik@octave.org>
date Fri, 25 Sep 2015 18:50:41 -0700
parents 43e6415393ff
children
line wrap: on
line source

#! /bin/sh

set -e
GREP=${GREP:-grep}
SED=${SED:-sed}

srcdir="$1"
shift

for arg
do
  if [ -f "$arg" ]; then
    file="$arg"
  else
    file="$srcdir/$arg"
  fi
  if [ "`$GREP -l '^%!' $file`" ]; then
    echo "$file" | $SED "s,\\$srcdir/,,";
  fi
done