view build-aux/find-files-with-tests.sh @ 18916:04a00ba54557

colorbar.m: Show ticks on colorbar. * colorbar.m: set axis "layer" to "top" to display tickmarks above colorbar image.
author Rik <rik@octave.org>
date Mon, 30 Jun 2014 21:11:38 -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