renovations
This commit is contained in:
parent
a62682e188
commit
35081a779a
115 changed files with 439 additions and 325 deletions
22
script/clean-unused-png.php
Normal file
22
script/clean-unused-png.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
$files = trim(`find . -name *.png`);
|
||||
$files = explode("\n", $files);
|
||||
|
||||
$root = getcwd();
|
||||
|
||||
echo $root;
|
||||
foreach($files as $file) {
|
||||
$file = trim(substr($file, 1));
|
||||
if (strstr($file, '@2x')) continue;
|
||||
|
||||
$filename = basename($file);
|
||||
$dir = $root . dirname($file);
|
||||
chdir($dir);
|
||||
$result = `grep $filename *`;
|
||||
|
||||
if (!$result) {
|
||||
echo $dir, "\n", $filename;
|
||||
|
||||
exit;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue