Friday, August 30, 2013

Qxt Qt 5

http://qt-project.org/wiki/LibQxt_in_QtCreator


copyheaders.php
#!/c/xampp/php/php.exe
##!/usr/bin/php
'bdb',
 'designer'=>'Core',
 'network'=>'Network',
 'sql'=>'Sql',
 'web'=>'Web',
 'widgets'=>'Widgets',
 'zeroconf'=>'Zeroconf'
);


foreach($copy_modules as $from => $to){
   $from_full_path = $dir.'/src/'.$from;
   $to_full_path = $dir.'/include/Qxt'.$to;
   if (!is_dir($from_full_path)){
      echo 'From path: '.$from_full_path.' does not exist ('.$from.')'.PHP_EOL;
      continue;
   }
   if (!is_dir($to_full_path)){
      echo 'To path: '.$to_full_path.' does not exist ('.$from.'=>'.$to.')'.PHP_EOL;
      continue;
   }
   //both directories exist, now copy all the files
   foreach (glob($from_full_path."/*.h") as $filepath) {
       if (file_exists($filepath)){
           //echo $filepath.PHP_EOL;
   // $pi = pathinfo($filepath);
    //echo "copy $filepath to ".basename($filepath).PHP_EOL;
    $cp = copy($filepath,$to_full_path.'/'.basename($filepath));
    echo 'Copied? '.($cp ? 'Yes!' : 'Fail.').PHP_EOL;
       }
   }
}

No comments:

Post a Comment