#!/bin/ksh #Create launch image. The top 40 pixels are transparent for the status bar. cd ~mm64/public_html/INFO1-CE9236/src/icon export LD_LIBRARY_PATH=~mm64/public_html/INFO1-CE9236/netpbm/lib export RGBDEF=~mm64/public_html/INFO1-CE9236/netpbm/lib/rgb.txt export PATH=$PATH:~mm64/public_html/INFO1-CE9236/netpbm/bin #in pixels width=640 screenHeight=1136 #960 or 1136 barHeight=40 rm -f /tmp/bar /tmp/app ppmmake red $width $barHeight > /tmp/bar ppmmake yellow $width $((screenHeight - barHeight)) > /tmp/app #Default@2x.png or Default-568h@2x.png filename=Default-568h@2x.png pnmcat -topbottom /tmp/bar /tmp/app | pnmtopng -transparent=red > $filename chmod 444 $filename rm /tmp/bar /tmp/app exit 0