# Derive both Active and Armed state from Active image
#!/bin/sh +xv
#set -o verbose

export IMAGE=$1
export TmpDIR=$8

export VERBOSE=
$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
$iS -ma $EITHREADS $VERBOSE -s $2 $3 Icons/images/$IMAGE.sgi $TmpDIR/$IMAGE-Armed.c
$iS -ma $EITHREADS $VERBOSE -s $2 $3 Icons/images/$IMAGE-Running.sgi $TmpDIR/$IMAGE-Running.c
$iCR $EITHREADS $VERBOSE -cr 0 0 $6 $7 Icons/images/$IMAGE.sgi $TmpDIR/$IMAGE-Big.sgi
$iS -ma $EITHREADS $VERBOSE -s $4 $5 $TmpDIR/$IMAGE-Big.sgi $TmpDIR/$IMAGE-Big.c
cat $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c $TmpDIR/$IMAGE-Running.c $TmpDIR/$IMAGE-Big.c > $TmpDIR/$IMAGE-all.c;rm -f $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c $TmpDIR/$IMAGE-Running.c $TmpDIR/$IMAGE-Big.c
