Mercurial > hg > octave-nkf
comparison src/mkoctfile.in.cc @ 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 | 25eff7fe556d |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
16623:9c0487bb205b | 16624:96d02808a881 |
---|---|
394 if (debug) | 394 if (debug) |
395 cout << cmd << endl; | 395 cout << cmd << endl; |
396 return system (cmd.c_str ()); | 396 return system (cmd.c_str ()); |
397 } | 397 } |
398 | 398 |
399 bool | |
400 is_true (const std::string& s) | |
401 { | |
402 return (s == "yes" | |
403 || s == "true"); | |
404 } | |
405 | |
399 int | 406 int |
400 main (int argc, char **argv) | 407 main (int argc, char **argv) |
401 { | 408 { |
402 initialize (); | 409 initialize (); |
403 | 410 |
412 string incflags = ""; | 419 string incflags = ""; |
413 string defs = ""; | 420 string defs = ""; |
414 string ldflags = ""; | 421 string ldflags = ""; |
415 string pass_on_options = ""; | 422 string pass_on_options = ""; |
416 bool strip = false; | 423 bool strip = false; |
417 bool no_oct_file_strip_on_this_platform = %NO_OCT_FILE_STRIP%; | 424 bool no_oct_file_strip_on_this_platform = is_true ("%NO_OCT_FILE_STRIP%"); |
418 bool link = true; | 425 bool link = true; |
419 bool link_stand_alone = false; | 426 bool link_stand_alone = false; |
420 string output_ext = ".oct"; | 427 string output_ext = ".oct"; |
421 bool depend = false; | 428 bool depend = false; |
422 bool compile = true; | 429 bool compile = true; |