view build-aux/find-files-with-tests.sh @ 18521:713193ffc8c4 gui-release

allow to select mutliple files in the editors open file dialog (bug #41664) * file-editor.cc (request_open_file (void)): allow to select multiple files in the open file dialog, connect filesSelected signal to new slot; (request_open_files): slot for the open file dialogs signal filesSelected * file-editor.h: new slot request_open_files
author Torsten <ttl@justmail.de>
date Sun, 23 Feb 2014 19:18:24 +0100
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