if (!file_exists($tg) || !filesize($tg) ) {
- if ($cli && in_array($f, $flist)) {
- echo "COPY $src $tg" . ($cli ? "\n" : "<BR>");
+ if ($cli && !filesize($tg) || in_array($f, $flist)) {
+ echo "COPY $src $tg" . ($cli ? "\n" : "<BR>");
copy($src, $tg);
continue;
}
}
-
-
-
+ /**
+ * imports SQL files from all DataObjects directories....
+ *
+ * except any matching /migrate/
+ */
function importSQL()
{
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$url['host'] = '*****';
}
-
-
require_once 'System.php';
$cat = System::which('cat');
$mysql = System::which('mysql');