Mercurial > octave
view libinterp/build-env-features.sh @ 22249:da201af35c97
maint: properly include <vector> in svd classes.
* liboctave/numeric/gsvd.cc: insert missing include.
* liboctave/numeric/svd.h: use <> rather than "".
* liboctave/numeric/svd.cc: remove include, done in the header already.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 10 Aug 2016 09:09:41 +0200 |
parents | 7b48be706e28 |
children | b3268dbf9781 |
line wrap: on
line source
#! /bin/sh ## Attempt to get traditional sort behavior based on byte values. LC_ALL=C export LC_ALL set -e AWK=${AWK:-awk} conffile=$1 cat << EOF // DO NOT EDIT! Generated automatically from $conffile by Make." #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "build-env.h" #include "ov.h" namespace octave { namespace build_env { octave_scalar_map features (void) { static bool initialized = false; static octave_scalar_map m; if (! initialized) { static octave_value ov_true = (true); static octave_value ov_false = (false); EOF $AWK \ '/#define (OCTAVE_|)HAVE_/ { sub (/(OCTAVE_|)HAVE_/, "", $2); printf (" m.assign (\"%s\", ov_true);\n", $2); } /\/\* #undef (OCTAVE_|)HAVE_/ { sub (/(OCTAVE_|)HAVE_/, "", $3); printf (" m.assign (\"%s\", ov_false);\n", $3); } { }' $conffile | sort cat << EOF initialized = true; } return m; } }; }; EOF