view build-aux/find-files-with-tests.sh @ 17554:f0d21e7d4653

avoid Cell arrays in usr_transfer classes * urlwrite.cc (Furlwrite, Furlread): Require property value pairs to be passed as a cell array of character strings. Extract as Array<std::string>. (base_url_transfer::base_url_transfer, curl_transfer::curl_transfer, curl_transfer::form_query_string, url_transfer::url_transfer): Accept Array<std::string> for parameters instead of Cell object.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Oct 2013 14:33:31 -0400
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