Mercurial > hg > octave-lyh
comparison src/help.cc @ 4469:53ee020af847
[project @ 2003-07-26 03:45:10 by jwe]
author | jwe |
---|---|
date | Sat, 26 Jul 2003 03:45:11 +0000 |
parents | ccfdb55c8156 |
children | c7ae43dfdea4 |
comparison
equal
deleted
inserted
replaced
4468:efb6301dae80 | 4469:53ee020af847 |
---|---|
506 { | 506 { |
507 int status = 0; | 507 int status = 0; |
508 | 508 |
509 OSSTREAM cmd_buf; | 509 OSSTREAM cmd_buf; |
510 | 510 |
511 cmd_buf << Vinfo_prog << " --file " << Vinfo_file; | 511 cmd_buf << "\"" << Vinfo_prog << "\" --file \"" << Vinfo_file << "\""; |
512 | 512 |
513 std::string directory_name = Vinfo_file; | 513 std::string directory_name = Vinfo_file; |
514 size_t pos = directory_name.rfind ('/'); | 514 size_t pos = directory_name.rfind ('/'); |
515 | 515 |
516 if (pos != NPOS) | 516 if (pos != NPOS) |
517 { | 517 { |
518 directory_name.resize (pos + 1); | 518 directory_name.resize (pos + 1); |
519 cmd_buf << " --directory " << directory_name; | 519 cmd_buf << " --directory \"" << directory_name << "\""; |
520 } | 520 } |
521 | 521 |
522 if (nm.length () > 0) | 522 if (nm.length () > 0) |
523 cmd_buf << " --index-search " << nm; | 523 cmd_buf << " --index-search " << nm; |
524 | 524 |
611 cols = 72; | 611 cols = 72; |
612 | 612 |
613 OSSTREAM buf; | 613 OSSTREAM buf; |
614 | 614 |
615 buf << "sed -e 's/^[#%][#%]* *//' -e 's/^ *@/@/' | " | 615 buf << "sed -e 's/^[#%][#%]* *//' -e 's/^ *@/@/' | " |
616 << Vmakeinfo_prog | 616 << "\"" << Vmakeinfo_prog << "\"" |
617 << " -D \"VERSION " << OCTAVE_VERSION << "\"" | 617 << " -D \"VERSION " << OCTAVE_VERSION << "\"" |
618 << " -D \"OCTAVEHOME " << OCTAVE_PREFIX << "\"" | 618 << " -D \"OCTAVEHOME " << OCTAVE_PREFIX << "\"" |
619 << " -D \"TARGETHOSTTYPE " << OCTAVE_CANONICAL_HOST_TYPE << "\"" | 619 << " -D \"TARGETHOSTTYPE " << OCTAVE_CANONICAL_HOST_TYPE << "\"" |
620 << " --fill-column " << cols | 620 << " --fill-column " << cols |
621 << " --no-warn" | 621 << " --no-warn" |