Mercurial > octave
diff libinterp/operators/mk-ops.sh @ 23709:3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
* libgui/mk-default-qt-settings.in.sh: Rename from
build-aux/mk-default-qt-settings.in.sh.
* libinterp/mk-doc.pl: Rename from libinterp/gendoc.pl.
* libinterp/operators/mk-ops.sh: Rename from libinterp/mkops.
* scripts/mk-doc.pl: Rename from scripts/mkdoc.pl.
* libinterp/mk-builtins.pl: Rename from build-aux/mk-builtins.pl.
* liboctave/external/mk-f77-def.in.sh: Rename from
build-aux/mk-f77-def.in.sh.
* libinterp/corefcn/mk-mxarray-h.in.sh: Rename from
build-aux/mk-mxarray-h.in.sh.
* libinterp/mk-version-h.in.sh: Rename from
build-aux/mk-version-h.in.sh.
* libinterp/corefcn/genprops.awk: Rename from libinterp/genprops.awk.
* libinterp/corefcn/mk-errno-list.sh: Rename from
libinterp/mk-errno-list.
* libinterp/mk-pkg-add.sh: Rename from libinterp/mk-pkg-add.
* scripts/mk-pkg-add.sh: Rename from scripts/mk-pkg-add.
* Makefile.am, build-aux/module.mk, configure.ac, libgui/module.mk,
libinterp/corefcn/module.mk, libinterp/dldfcn/config-module.awk,
libinterp/module.mk, libinterp/operators/module.mk,
liboctave/external/module.mk, liboctave/external/ranlib/module.mk,
scripts/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 27 Jun 2017 15:10:58 -0400 |
parents | libinterp/mkops@092078913d54 |
children | 194eb4bd202b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libinterp/operators/mk-ops.sh Tue Jun 27 15:10:58 2017 -0400 @@ -0,0 +1,57 @@ +#! /bin/sh +# +# Copyright (C) 1997-2017 John W. Eaton +# +# This file is part of Octave. +# +# Octave is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Octave is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Octave; see the file COPYING. If not, see +# <http://www.gnu.org/licenses/>. + +SED=${SED:-sed} + +cat << \EOF +// DO NOT EDIT! Generated automatically by mk-ops.sh. + +#if defined (HAVE_CONFIG_H) +# include "config.h" +#endif + +extern void install_base_type_conversions (void); + +EOF + +for file in "$@"; do + f=`echo $file | $SED 's,^\./,,; s%^libinterp/operators/op-%%; s%\.cc%%; s%-%_%g'` + echo "extern void install_${f}_ops (void);" +done + +cat << \EOF + +void +install_ops (void) +{ + install_base_type_conversions (); + +EOF + +for file in "$@"; do + f=`echo $file | $SED 's,^\./,,; s%^libinterp/operators/op-%%; s%\.cc%%; s%-%_%g'` + echo " install_${f}_ops ();" +done + +cat << \EOF +} +EOF + +exit 0