# Base + Active -> Base, Active, Armed (2 in 3 out)
#!/bin/sh +xv
#set -o verbose
#export VERBOSE=-v
export IMAGE=$1
export TmpDIR=$4

export ARMED_EICON_GAIN=1.2

$iS -ma $EITHREADS   $VERBOSE  -s $2 $3  Icons/images/$IMAGE.sgi         $TmpDIR/$IMAGE.c
$iS -ma $EITHREADS   $VERBOSE  -s $2 $3  Icons/images/$IMAGE-Active.sgi  $TmpDIR/$IMAGE-Active.c

$iCN $VERBOSE -c $ARMED_EICON_GAIN Icons/images/$IMAGE.sgi $TmpDIR/$IMAGE-Armed.sgi
$iS -ma $EITHREADS   $VERBOSE  -s $2 $3  $TmpDIR/$IMAGE-Armed.sgi  $TmpDIR/$IMAGE-Armed.c

cat $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c > $TmpDIR/$IMAGE-all.c

rm -f $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c
