view build-aux/find-files-with-tests.sh @ 17860:93edd282a2bc

subplot.m: Matlab compatibility when "position" given (bug #40480). * scripts/plot/util/subplot.m: Replicate subplot code for the case where "position" arg given. When "position" given, use it for all calculations rather than "outerposition" as in normal code.
author Rik <rik@octave.org>
date Wed, 06 Nov 2013 11:14:40 -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