view build-aux/find-files-with-tests.sh @ 18905:82773ee8119a

Fix ambiguous Matrix initialization from csetdf972b9d080a * graphics.cc (default_patch_x/ydata): explicitly use decimal numbers to initialize Matrices to double values
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 10 Jul 2014 09:52:49 +0200
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