Changeset 2157 for trunk/apps


Ignore:
Timestamp:
04/27/11 11:14:10 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run asap2to3 in=<filename>/

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on output file name when input file name ends with '/'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/apps/asap2to3.cpp

    r1882 r2157  
    1717  inputs.readArguments (argc, argv);
    1818  String fname =  inputs.getString("in");
     19  if ( fname.lastchar() == '/' )
     20    fname = fname.substr(0,fname.length()-1) ;
    1921  Table origtab(fname);
    2022  fname +=".asap3";
     23  //cout << "fname=" << fname << endl ;
    2124  origtab.deepCopy(fname, Table::New);
    2225  Table tab(fname, Table::Update);
Note: See TracChangeset for help on using the changeset viewer.