#!/bin/sh

setvar RIGHTVER = "$2"
setvar Y1 = '315'
setvar X1 = '330'
setvar X2 = '331'
setvar X3 = '332'

# | pnmsmooth

cat $1 | giftopnm | ppmlabel -background transparent -color "dark orange" -size 22 -x $X1 -y $Y1 -text $RIGHTVER -background transparent -color "dark orange" -size 22 -x $X2 -y $Y1 -text $RIGHTVER -background transparent -color "dark orange" -size 22 -x $X3 -y $Y1 -text $RIGHTVER | ppmquant 256 | ppmtogif #> logo.gif
sync