Mercurial > hg > octave-shane
changeset 16624:96d02808a881
Support "true" or "yes" for %NO_OCT_FILE_STRIP% in mkoctfile.in.cc.
* src/mkoctfile.in.cc (is_true): New function.
(main): Use it on %NO_OCT_FILE_STRIP% replacement.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Mon, 06 May 2013 20:01:54 -0400 |
parents | 9c0487bb205b |
children | a86a14e6e65e |
files | src/mkoctfile.in.cc |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mkoctfile.in.cc +++ b/src/mkoctfile.in.cc @@ -396,6 +396,13 @@ return system (cmd.c_str ()); } +bool +is_true (const std::string& s) +{ + return (s == "yes" + || s == "true"); +} + int main (int argc, char **argv) { @@ -414,7 +421,7 @@ string ldflags = ""; string pass_on_options = ""; bool strip = false; - bool no_oct_file_strip_on_this_platform = %NO_OCT_FILE_STRIP%; + bool no_oct_file_strip_on_this_platform = is_true ("%NO_OCT_FILE_STRIP%"); bool link = true; bool link_stand_alone = false; string output_ext = ".oct";