#!/bin/sh # # $Id$ # # Conversion d'un fichier Latex en un fichier NewGen # # Remi Triolet # # Modifications # - ajout de l'option bidon "-" aux commandes "echo" (FI, 29/12/89) # - suppression de la mise en minuscule pour les "external domains" # (FI, 29/12/89) # - remplacement de la mise en minuscule systematique des domaines # definies par la mise en minuscule du PREMIER caractere de chaque # declaration NewGen pour conserver la belle presentation du # chef de projet-president :-) (FI, 29/12/89) # - shorten and changed, FC # # Bugs: # \begin{domain} ... \end{domain} is not used anywhere, and buggy. input=$1 tmp=`basename $1 .tex` output=$tmp.newgen tmp=/tmp/rlc.$$ rm -rf $tmp.* cat > $output < $tmp.domains { echo echo "-- Imported domains" echo "-- ----------------" cat $tmp.import echo echo "-- External domains" echo "-- ----------------" cat $tmp.external echo echo "-- Domains" echo "-- -------" cat $tmp.domains } >> $output rm -rf $tmp.* # end of it #