void MComponent::writeTargetCD( ContFile& mak ) { WFileName path; _filename.path( path, false ); if( path.match( NULL, matchDir ) ) { path.concat( "\\" ); } if( path.drive()[0] != '\0' && path.drive()[1] == ':' ) mak.printf( " @%s\n", path.drive() ); mak.printf( " cd %s\n", (const char*)path ); }
MItem* MComponent::findSameResult( MItem* item ) { WFileName fn; if( item->absResult( fn ) ) { bool isMask = item->isMask(); for( int i=0; i<_items.count(); i++ ) { MItem* m = (MItem*)_items[i]; if( isMask || !isMask && !m->isMask() ) { WFileName fi; if( m->absResult( fi ) ) { if( fn.match( fi, matchAll ) ) { return( m ); } } } } } return( NULL ); }