view libinterp/dldfcn/config-module.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 2fc554ffbc28
children 1bca6c72d2b1
line wrap: on
line source

#! /bin/sh

set -e

: ${AWK=awk}

if [ $# -eq 1 ]; then
  top_srcdir="$1";
else
  top_srcdir="../.."
fi

move_if_change="$top_srcdir/build-aux/move-if-change"

dld_dir=$top_srcdir/libinterp/dldfcn

$AWK -f $dld_dir/config-module.awk < $dld_dir/module-files > $dld_dir/module.mk-t

$move_if_change $dld_dir/module.mk-t $dld_dir/module.mk