diff options
| author | koem <koem@petoria.de> | 2013-02-09 18:14:29 +1300 |
|---|---|---|
| committer | koem <koem@petoria.de> | 2013-02-11 08:16:24 +1300 |
| commit | 8bc22701fbef17c24de6f2f8af282da08eba5766 (patch) | |
| tree | 7f81de606dab7eb5dab6d20cac2af1c00b99ceba /main/project/attributes/makeicons1res.sh | |
| parent | 509cefa3af847129bf40cff15437183d950752a7 (diff) | |
| download | cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.zip cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.gz cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.bz2 | |
Icons for OC
- new icons for opencaching
- changed some icons because of copyright
- english strings for opencaching attributes
- german strings for opencaching attributes
- new script to show (missing) strings for attributes
- new script to edit svg files from thenounproject.com
- new script to generate enums
- ocicons.html: list of all OC icons
Diffstat (limited to 'main/project/attributes/makeicons1res.sh')
| -rwxr-xr-x[-rw-r--r--] | main/project/attributes/makeicons1res.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/main/project/attributes/makeicons1res.sh b/main/project/attributes/makeicons1res.sh index a6805ea..85e9fd7 100644..100755 --- a/main/project/attributes/makeicons1res.sh +++ b/main/project/attributes/makeicons1res.sh @@ -1,7 +1,6 @@ #!/bin/bash # # creates attribute icons in one resolution only -# target dir: ./drawable require () { hash $1 2>&- || { echo >&2 "I require $1 but it's not installed. Aborting."; exit 1; } @@ -12,6 +11,8 @@ require convert require composite require sed +# directory for icons +ICONDIR="./drawable-mdpi" # size of the image itself (inside border) IMGSIZE=32 # size of the whole icon @@ -31,14 +32,14 @@ SSTROKE=5 # color of the strikethru bar SCOL=\#c00000 # file name of strike thru bar -SFNAME="drawable/attribute__strikethru.png" +SFNAME="$ICONDIR/attribute__strikethru.png" #calculated values BNDIST=$(( ${ICONSIZE} - ${BDIST} )) res=48 # create output directory if missing -[ -d drawable ] || mkdir drawable +[ -d $ICONDIR ] || mkdir $ICONDIR # create border echo "drawing border" @@ -67,7 +68,7 @@ else svgs="svgs/*.svg" fi for s in $svgs; do - n=drawable/attribute_`basename "$s" | sed "s/\.svg//"` + n=$ICONDIR/attribute_`basename "$s" | sed "s/\.svg//"` # don't draw icons if svg is older than icon [ -f "${n}.png" ] && [ "$s" -ot "${n}.png" ] && continue |
