| 1 |
#!/bin/sh -e
|
| 2 |
|
| 3 |
# $Id$
|
| 4 |
# (C) 2005, Adeodato Simó <asp16@alu.ua.es>
|
| 5 |
# GPL'ed code follows.
|
| 6 |
|
| 7 |
# Script to create icons for menu files. How it works: call it from the
|
| 8 |
# top-level directory (i.e., debian/ exists). It will find all lines in
|
| 9 |
# .menu files starting with '# Icon', placing the resulting file under
|
| 10 |
# debian/icons.
|
| 11 |
#
|
| 12 |
# Icon 32x32 konqueror/pics/cr32-app-konqueror.png konqueror.xpm
|
| 13 |
|
| 14 |
dh_testdir
|
| 15 |
|
| 16 |
find debian -name '*.menu' -print0 | xargs -r0 grep -Eh '^# Icon ' |
|
| 17 |
|
| 18 |
while read foo bar SIZE FROM TO; do
|
| 19 |
echo "Creating $TO from $FROM..."
|
| 20 |
convert -resize $SIZE "$FROM" "debian/icons/$TO"
|
| 21 |
done
|