view build-aux/find-files-with-tests.sh @ 18858:92e9d4710f78 stable

Fix typo in graphics.in.h (bug #42535). * graphics.in.h: Change "perpective" to "perspective".
author Michael Godfrey <michaeldgodfrey@gmail.com>
date Tue, 10 Jun 2014 18:19:32 +0100
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