projects
/
pspp
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
render: Make struct render_params a little smaller.
[pspp]
/
build-aux
/
icon-list
1
#! /bin/sh
2
3
id=$1
4
name=$2
5
shift; shift
6
7
cat <<EOF
8
static const char *${id}_icon_name[] =
9
{
10
EOF
11
for i
12
do
13
echo $i
14
done \
15
| sed -e 's%[a-zA-Z/]*/[1-9]*x[1-9]*/\([^ ]*\)\.png%\1%g' \
16
| sort -u \
17
| while read f
18
do
19
printf ' "%s", \n' $f
20
done
21
cat <<EOF
22
};
23
24
const struct icon_context ${id}_icon_context = {
25
${id}_icon_name,
26
sizeof (${id}_icon_name) / sizeof (${id}_icon_name[0]),
27
"$name"
28
};
29
30
EOF