view build-aux/find-files-with-tests.sh @ 20530:8c4317b8f7c5 stable

ellipke.m: Use correct definition of elliptic integral in documentation (bug #45522). * ellipke.m: Replace 'm^2' with just 'm' in definitions of elliptic integrals.
author Rik <rik@octave.org>
date Fri, 10 Jul 2015 11:55:14 -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