view build-aux/find-files-with-tests.sh @ 20493:ba032e57fd96 stable

range.tst: Add tests for bug #45739. * range.tst: Add tests for bug #45739.
author Rik <rik@octave.org>
date Thu, 20 Aug 2015 06:51:30 -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