view build-aux/find-files-with-tests.sh @ 19601:6a9bde1ba0ea gui-release

Stop using deprecated and removed ghostscript device pswrite (bug #41141) * __ghostscript__.m: Remove references to pswrite device. * __print_parse_opts__.m: Remove references to pswrite device. Change default postscript level to 2. Use device ps2write for -dps and -psc print switches.
author Rik <rik@octave.org>
date Mon, 12 Jan 2015 08:47:12 -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