view build-aux/find-files-with-tests.sh @ 21241:bae38398f5f1

use consistent style for all liboctave and libinterp include guards * mex.h, mexproto.h, mxarray.in.h, oct-obj.h, octave-default-image.h: Use include guard style that is consistent with other files in Octave.
author John W. Eaton <jwe@octave.org>
date Wed, 10 Feb 2016 12:21:36 -0500
parents 43e6415393ff
children 3b4bb843ffcd
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