Browse Source

Exclude files/directories from Classic copy on install

pull/1/head 0.4.1
JamesRezo 1 year ago
parent
commit
4d71c45e1d
  1. 8
      src/Classic.php

8
src/Classic.php

@ -22,8 +22,16 @@ class Classic
$filesystem = new Filesystem();
$rootDir = realpath($event->getComposer()->getConfig()->get('vendor-dir') . '/..');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/.git');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/composer.json');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/composer.lock');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/.gitignore');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/.gitattributes');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/.gitsvnextmodules');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/IMG');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/local');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/tmp');
$filesystem->remove($rootDir . '/tmp/__spip_classic__/config');
$filesystem->copy($rootDir . '/tmp/__spip_classic__', $rootDir);
$filesystem->remove($rootDir . '/tmp/__spip_classic__');
}

Loading…
Cancel
Save