Mercurial > octave-antonio
view build-aux/find-files-with-tests.sh @ 20168:7bd87990a8f4 draft
gallery.m: revert to rewrite gallery improvements
author | Antonio Pino Robles <data.script93@gmail.com> |
---|---|
date | Wed, 27 May 2015 22:38:13 +0200 |
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