view build-aux/find-files-with-tests.sh @ 17245:5f14fc8feba3

graphics.cc: Restore default graphics properties after %!tests. * libinterp/corefcn/graphics.cc: Use unwind_protect blocks to restore properties modified on root figure.
author Rik <rik@octave.org>
date Tue, 13 Aug 2013 16:35:29 -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