From 8c30c456806ff6d40684a7acf4084f387932db0e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Feb 2024 07:46:58 +0100 Subject: Big update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- mk/make-dir-info | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 mk/make-dir-info (limited to 'mk/make-dir-info') diff --git a/mk/make-dir-info b/mk/make-dir-info new file mode 100755 index 0000000..d2adb6b --- /dev/null +++ b/mk/make-dir-info @@ -0,0 +1,49 @@ +#!/bin/sh + +size="$1" +dir="$2" + +d="$(printf '%s\n' "$dir" | cut -d / -f 1)" + +if test "$d" = actions; then + context=Actions +elif test "$d" = animations; then + context=Animations +elif test "$d" = apps; then + context=Applications +elif test "$d" = categories; then + context=Categories +elif test "$d" = devices; then + context=Devices +elif test "$d" = emblems; then + context=Emblems +elif test "$d" = emotes; then + context=Emotes +elif test "$d" = filesystems; then + context=FileSystems +elif test "$d" = intl; then + context=International +elif test "$d" = legacy; then + context=Legacy +elif test "$d" = mimetypes; then + context=MimeTypes +elif test "$d" = places; then + context=Places +elif test "$d" = status; then + context=Status +elif test "$d" = stock; then + context=Stock +elif test "$d" = ui; then + context=UI +else + printf '%s: No value defined for Context for %s\n' "$0" "$d" >&2 + exit 1 +fi + +if test "$size" = scalable; then + printf '[%s/%s]\n' "$size" "$dir" + printf '%s\n' Context="$context" Size="16" MinSize="8" MaxSize="1024" Type="Scalable" +else + printf '[%sx%s/%s]\n' "$size" "$size" "$dir" + printf '%s\n' Context="$context" Size="$size" Type="Fixed" +fi -- cgit v1.2.3-70-g09d2