#!/bin/csh
#######################################################################################################################################
# #
# R E P E T I T I O N D ' U N E C O M M A N D E P O U R U N E L I S T E Q U E L C O N Q U E D ' I M A G E S : #
# #
# #
# Utilisation : #
# #
# $xci/repeat.02$Z <liste> '<commande>' #
# #
# #
# Notations : #
# #
# le "nom partiel" d'image courante sera #
# accessible par '$n'. #
# #
# #
# Exemple : #
# #
# $xci/repeat.02$Z "$ROUGE $VERTE $BLEUE" "$xci/display$X A=$xiia/PAYSAGE.A1$M"'$n'" p=$xiP/gris.01 $formatI" #
# #
# #
# Author of '$xci/repeat.02$Z' : #
# #
# Jean-Francois Colonna (LACTAMME, AAAAMMJJhhmmss). #
# #
#######################################################################################################################################
set liste="$1"
set commande="($2)"
foreach n ($liste)
eval $commande
# Execution de la commande argument. #
if ($status != $OK) then
EROR "Probleme d'execution (n=$n) : $commande"
# Cas d'une erreur d'execution. #
else
endif
end