#!/bin/sh # # this script generates a html-page with all icons on it OUT=iconlist1res.html BG0=#c0c0c0 BG1=#a0a0a0 BG=0 BGCOLOR=$BG0 addrow () { echo "" >> "${OUT}" echo "" >> "${OUT}" echo "" >> "${OUT}" # echo "" >> "${OUT}" echo "" >> "${OUT}" desc=`grep "${1}_yes" ../../res/values/strings.xml | sed "s/^.*>\(.*\)<.*$/\1/"` echo "$desc$1" >> "${OUT}" BG=$(( $BG + 1 )) [ $BG -eq 2 ] && BG=0 [ $BG -eq 0 ] && BGCOLOR=$BG0 [ $BG -eq 1 ] && BGCOLOR=$BG1 } echo "" > "${OUT}" echo "" >> "${OUT}" cat iconlist.txt | grep -v "^#" | while read i; do name=`echo $i | cut -d "|" -f 1 | sed "s/ //g"` addrow attribute_$name done echo "
icondescriptionresource name
" >> "${OUT}"