From 8743dba0f5f8e6b92be336cafca4c71d0e137bcd Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 28 Feb 2014 13:23:18 +0100 Subject: [PATCH] removed script, added README instead --- lib/images/fileicons/README | 2 ++ lib/images/fileicons/generate.php | 44 ------------------------------- 2 files changed, 2 insertions(+), 44 deletions(-) create mode 100644 lib/images/fileicons/README delete mode 100644 lib/images/fileicons/generate.php 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"); - -- GitLab