aboutsummaryrefslogtreecommitdiffstats
path: root/mk/make-dir-info
blob: d2adb6b5902a66c672410bf03766ddd0ae89dc36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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