view build-aux/find-files-with-tests.sh @ 20625:45759620a9a5 stable

quantile.m: Fix operation along a singleton dimension (bug #45455). * quantile.m: Add isempty() to input validation. * quantile.m (__quantile__): Sort x explicitly along dimension 1.
author Lachlan Andrew <lachlanbis@gmail.com>
date Fri, 09 Oct 2015 19:14:20 -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