mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +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:
@@ -4,7 +4,7 @@
|
||||
our $html = "";
|
||||
our $title = "Milsko GUI Toolkit Documentation";
|
||||
our @pathlist = ("include");
|
||||
our @notes = ("warning", "unsure", "note");
|
||||
our @notes = ("warning", "unsure", "note", "info");
|
||||
|
||||
our @files = ();
|
||||
our %files_sections = ();
|
||||
|
||||
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