view build-aux/find-files-with-tests.sh @ 16023:98fc95793699

missing file for commit 5b2126a8c84f
author John W. Eaton <jwe@octave.org>
date Fri, 08 Feb 2013 21:52:09 -0500
parents
children 43e6415393ff
line wrap: on
line source

#! /bin/sh

set -e
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