# ----------------------------------------------------------------------
# HP_laser
# ----------------------------------------------------------------------
# Interface d'impression pour les imprimante HP.
# ----------------------------------------------------------------------

# -- Usage ----------------------------------------------------------------
if [ $# != 3 ]
then
   echo "Usage : $0 <Imprimante> <format> <fichier> "
   echo "        format (valeurs : FN, FC, IN ou IC selon l'orientation)"
   exit 1
else
   imprimante="$1"
   format="$2"
   fichier="$3"
fi

ladate=`date '+%d/%m/%y'`

case "$format" in
     IN) lp -d$imprimante -onb -olandscape -otl43 -ofp14 -olm6 $fichier;;
     IC) lp -d$imprimante -onb -olandscape -oc -ovsi4 -otl80 $fichier;;
     FN) lp -d$imprimante -onb -oportrait -otl66 -ofp14 -olm4 $fichier;;
     FC) lp -d$imprimante -onb -oportrait -otl80 -ofp17 -olm4 $fichier;;
     *) echo "Format d'impression inconnu"
        echo
        usage
	exit 1
       ;;
esac
