Skip to content
Snippets Groups Projects
Commit 8743dba0 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

removed script, added README instead

parent fd3ec3c5
No related branches found
No related tags found
No related merge requests found
For the generator of these files see
https://github.com/splitbrain/file-icon-generator/blob/master/example-dokuwiki.php
<?php
// this is not provided by DokuWiki and needs to checked out separately from
// https://github.com/splitbrain/file-icon-generator
require '/home/andi/projects/fileiconbuilder/FileIconBuilder.php';
if('cli' != php_sapi_name()) die('This has to be run from command line');
if(!defined('DOKU_INC')) define('DOKU_INC', realpath(dirname(__FILE__).'/../../../').'/');
define('NOSESSION', 1);
require_once(DOKU_INC.'inc/init.php');
$extensions = array(
'jpg', 'gif', 'png', 'ico',
'swf', 'mp3', 'ogg', 'wav', 'webm', 'ogv', 'mp4',
'tgz', 'tar', 'gz', 'bz2', 'zip', 'rar', '7z',
'pdf', 'ps',
'rpm', 'deb',
'doc', 'xls', 'ppt', 'rtf',
'docx', 'xlsx', 'pptx',
'sxw', 'sxc', 'sxi', 'sxd',
'odc', 'odf', 'odg', 'odi', 'odp', 'ods', 'odt',
'html', 'htm', 'txt', 'conf', 'xml', 'csv',
// these might be used in downloadable code blocks:
'c', 'cc', 'cpp', 'h', 'hpp', 'csh', 'diff', 'java', 'pas',
'pl', 'py', 'sh', 'bash', 'asm', 'htm', 'css', 'js', 'json'
);
// generate all the icons
@mkdir('16x16');
@mkdir('32x32');
$DFIB = new FileIconBuilder();
foreach($extensions as $ext) {
echo "$ext\n";
$DFIB->create16x16($ext,"16x16/$ext.png");
$DFIB->create32x32($ext,"32x32/$ext.png");
}
copy("16x16/jpg.png", "16x16/jpeg.png");
copy("32x32/jpg.png", "32x32/jpeg.png");
copy("16x16/htm.png", "16x16/html.png");
copy("32x32/htm.png", "32x32/html.png");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment