From 6dd6b9ee72324f48dc3807fe5ac55534b85afac9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Jun 2018 22:03:44 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- make-dir-info | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 make-dir-info (limited to 'make-dir-info') diff --git a/make-dir-info b/make-dir-info new file mode 100755 index 0000000..d43efe1 --- /dev/null +++ b/make-dir-info @@ -0,0 +1,29 @@ +#!/bin/sh + +if test "$2" = actions; then + context=Actions +elif test "$2" = animations; then + context=Animations +elif test "$2" = categories; then + context=Categories +elif test "$2" = devices; then + context=Devices +elif test "$2" = emblems; then + context=Emblems +elif test "$2" = emotes; then + context=Emotes +elif test "$2" = mimetypes; then + context=MimeTypes +elif test "$2" = places; then + context=Places +elif test "$2" = status; then + context=Status +fi + +if test "$1" = scalable; then + printf '[%s/%s]\n' "$1" "$2" + printf '%s\n' Context="$context" Size="16" MinSize="8" MaxSize="1024" Type="Scalable" +else + printf '[%sx%s/%s]\n' "$1" "$1" "$2" + printf '%s\n' Context="$context" Size="$1" Type="Fixed" +fi -- cgit v1.2.3-70-g09d2