view build-aux/find-files-with-tests.sh @ 19610:e97c63531e76

doc: Periodic grammarcheck of documentation. * func.txi: Use @noindent for examples in the middle of sentences. * warning_ids.m: Aline @item in table.
author Rik <rik@octave.org>
date Tue, 13 Jan 2015 22:06:39 -0800
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