mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 09:00:54 +00:00
add icons
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@255 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
15
tools/icon.sh
Executable file
15
tools/icon.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
for i in doc/*.gif; do
|
||||
LOWER=`echo $i | rev | cut -d"/" -f1 | rev | cut -d"." -f1`
|
||||
if [ "$LOWER" = "unsure" ]; then
|
||||
LOWER=question
|
||||
fi
|
||||
OUT=src/icon/$LOWER.c
|
||||
NAME=`echo -n $LOWER | perl -e 'my $l = <>;$l =~ s/^(.)/uc($1)/e;print($l);'`
|
||||
NAME=MwIcon$NAME
|
||||
echo '/* $Id$ */' > $OUT
|
||||
echo '#include <Mw/Milsko.h>' >> $OUT
|
||||
echo >> $OUT
|
||||
convert $i xpm:- | sed -E 's/^static //' | sed 's/xpm__/'$NAME'/' >> $OUT
|
||||
done
|
||||
Reference in New Issue
Block a user