Mercurial > octave
view build-aux/find-files-with-tests.sh @ 21197:9a5bb6996b16
write to pipe or file in gl2ps_print
* gl2ps-renderer.cc (safe_fclose): New function.
(gl2ps_print): Adapt code from F__osmesa_print__ to handle writing to
pipe or file based on the filename.
* __osmesa_print__.cc (close_fcn): Delete.
(F__osmesa_print__): Use gl2ps_print to write image to pipe or file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Feb 2016 17:13:12 -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