diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-02-28 13:23:18 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-02-28 13:23:18 +0100 |
commit | 8743dba0f5f8e6b92be336cafca4c71d0e137bcd (patch) | |
tree | 62e3ce562e5eec878975608db99b722659df9ae0 /lib/images | |
parent | fd3ec3c5b9b8af10dd89982ddbdf29ba7a13d700 (diff) | |
download | rpg-8743dba0f5f8e6b92be336cafca4c71d0e137bcd.tar.gz rpg-8743dba0f5f8e6b92be336cafca4c71d0e137bcd.tar.bz2 |
removed script, added README instead
Diffstat (limited to 'lib/images')
-rw-r--r-- | lib/images/fileicons/README | 2 | ||||
-rw-r--r-- | lib/images/fileicons/generate.php | 44 |
2 files changed, 2 insertions, 44 deletions
diff --git a/lib/images/fileicons/README b/lib/images/fileicons/README new file mode 100644 index 000000000..05385861e --- /dev/null +++ b/lib/images/fileicons/README @@ -0,0 +1,2 @@ +For the generator of these files see +https://github.com/splitbrain/file-icon-generator/blob/master/example-dokuwiki.php diff --git a/lib/images/fileicons/generate.php b/lib/images/fileicons/generate.php deleted file mode 100644 index b08749f49..000000000 --- a/lib/images/fileicons/generate.php +++ /dev/null @@ -1,44 +0,0 @@ -<?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"); - |