slackbuilds_ponce/games/abuse/mkicons.sh
B. Watson a9bfc2f55b
games/abuse: New maintainer, fix segfault.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-08-12 08:29:52 +07:00

20 lines
270 B
Bash

#!/bin/sh
src="$1"
shift
if [ -z "$src" -o ! -e "$src" -o "$*" ]; then
cat 1>&2 <<EOF
Usage: $0 /path/to/icon.png
EOF
fi
set -e
mkdir -p icons/
cat "$src" > icons/160.png
for i in 16 22 32 48 64 128; do
convert -resize ${i}x${i} "$src" icons/$i.png
done
exit 0